diff options
-rw-r--r-- | OpenSim/Services/GridService/HypergridLinker.cs | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs index 5c9dd78..d1ff4f2 100644 --- a/OpenSim/Services/GridService/HypergridLinker.cs +++ b/OpenSim/Services/GridService/HypergridLinker.cs | |||
@@ -119,8 +119,7 @@ namespace OpenSim.Services.GridService | |||
119 | if (scope != string.Empty) | 119 | if (scope != string.Empty) |
120 | UUID.TryParse(scope, out m_ScopeID); | 120 | UUID.TryParse(scope, out m_ScopeID); |
121 | 121 | ||
122 | 122 | m_MapTileDirectory = "../caches/" + gridConfig.GetString("MapTileDirectory", "maptiles"); | |
123 | m_MapTileDirectory = gridConfig.GetString("MapTileDirectory", "maptiles"); | ||
124 | 123 | ||
125 | m_ThisGatekeeper = Util.GetConfigVarFromSections<string>(config, "GatekeeperURI", | 124 | m_ThisGatekeeper = Util.GetConfigVarFromSections<string>(config, "GatekeeperURI", |
126 | new string[] { "Startup", "Hypergrid", "GridService" }, String.Empty); | 125 | new string[] { "Startup", "Hypergrid", "GridService" }, String.Empty); |
@@ -139,17 +138,14 @@ namespace OpenSim.Services.GridService | |||
139 | 138 | ||
140 | m_log.Debug("[HYPERGRID LINKER]: Loaded all services..."); | 139 | m_log.Debug("[HYPERGRID LINKER]: Loaded all services..."); |
141 | 140 | ||
142 | if (!string.IsNullOrEmpty(m_MapTileDirectory)) | 141 | try |
143 | { | 142 | { |
144 | try | 143 | Directory.CreateDirectory(m_MapTileDirectory); |
145 | { | 144 | } |
146 | Directory.CreateDirectory(m_MapTileDirectory); | 145 | catch (Exception e) |
147 | } | 146 | { |
148 | catch (Exception e) | 147 | m_log.WarnFormat("[HYPERGRID LINKER]: Could not create map tile storage directory {0}: {1}", m_MapTileDirectory, e); |
149 | { | 148 | m_MapTileDirectory = string.Empty; |
150 | m_log.WarnFormat("[HYPERGRID LINKER]: Could not create map tile storage directory {0}: {1}", m_MapTileDirectory, e); | ||
151 | m_MapTileDirectory = string.Empty; | ||
152 | } | ||
153 | } | 149 | } |
154 | 150 | ||
155 | if (MainConsole.Instance != null) | 151 | if (MainConsole.Instance != null) |