aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services
diff options
context:
space:
mode:
authoronefang2019-05-19 22:15:41 +1000
committeronefang2019-05-19 22:15:41 +1000
commit295e91b8f44a356ab742dedd27c1b7edfe7b1157 (patch)
treede336b1b137c27f94bd4e0a2fb63bea9b1de60e2 /OpenSim/Services
parentMove db directory out of tree. (diff)
downloadopensim-SC_OLD-295e91b8f44a356ab742dedd27c1b7edfe7b1157.zip
opensim-SC_OLD-295e91b8f44a356ab742dedd27c1b7edfe7b1157.tar.gz
opensim-SC_OLD-295e91b8f44a356ab742dedd27c1b7edfe7b1157.tar.bz2
opensim-SC_OLD-295e91b8f44a356ab742dedd27c1b7edfe7b1157.tar.xz
Move cache, config, logs out of tree, and various related clean ups.
Diffstat (limited to 'OpenSim/Services')
-rw-r--r--OpenSim/Services/GridService/HypergridLinker.cs3
-rw-r--r--OpenSim/Services/MapImageService/MapImageService.cs2
2 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs
index dabfd3b..67114ef 100644
--- a/OpenSim/Services/GridService/HypergridLinker.cs
+++ b/OpenSim/Services/GridService/HypergridLinker.cs
@@ -122,7 +122,8 @@ namespace OpenSim.Services.GridService
122 122
123// m_Check4096 = gridConfig.GetBoolean("Check4096", true); 123// m_Check4096 = gridConfig.GetBoolean("Check4096", true);
124 124
125 m_MapTileDirectory = gridConfig.GetString("MapTileDirectory", "maptiles"); 125//// TODO OpenSim is crazy, this is called from Robust and OpenSim, Robust needs the ../caches bit, OpenSim somehow adds a path already. I can't tell why. So strip the path.
126 m_MapTileDirectory = Path.Combine(Util.cacheDir(), Path.GetFileName(gridConfig.GetString("MapTileDirectory", "maptiles")));
126 127
127 m_ThisGatekeeper = Util.GetConfigVarFromSections<string>(config, "GatekeeperURI", 128 m_ThisGatekeeper = Util.GetConfigVarFromSections<string>(config, "GatekeeperURI",
128 new string[] { "Startup", "Hypergrid", "GridService" }, String.Empty); 129 new string[] { "Startup", "Hypergrid", "GridService" }, String.Empty);
diff --git a/OpenSim/Services/MapImageService/MapImageService.cs b/OpenSim/Services/MapImageService/MapImageService.cs
index c90f5bd..e9db41d 100644
--- a/OpenSim/Services/MapImageService/MapImageService.cs
+++ b/OpenSim/Services/MapImageService/MapImageService.cs
@@ -63,7 +63,7 @@ namespace OpenSim.Services.MapImageService
63 private const int HALF_WIDTH = 128; 63 private const int HALF_WIDTH = 128;
64 private const int JPEG_QUALITY = 80; 64 private const int JPEG_QUALITY = 80;
65 65
66 private static string m_TilesStoragePath = "maptiles"; 66 private static string m_TilesStoragePath = Path.Combine(Util.cacheDir(), "/maptiles");
67 67
68 private static object m_Sync = new object(); 68 private static object m_Sync = new object();
69 private static bool m_Initialized = false; 69 private static bool m_Initialized = false;