diff options
author | onefang | 2020-09-10 21:27:22 +1000 |
---|---|---|
committer | onefang | 2020-09-10 21:27:22 +1000 |
commit | ac4793dd0d7942846b76d307c3d048e9b316954f (patch) | |
tree | 2a4269c0263fa65652094b7c0126b37e88e63794 /OpenSim/Services/GridService | |
parent | Warp3DCachedImageModule from Christopher Latza. (diff) | |
download | opensim-SC-ac4793dd0d7942846b76d307c3d048e9b316954f.zip opensim-SC-ac4793dd0d7942846b76d307c3d048e9b316954f.tar.gz opensim-SC-ac4793dd0d7942846b76d307c3d048e9b316954f.tar.bz2 opensim-SC-ac4793dd0d7942846b76d307c3d048e9b316954f.tar.xz |
Various map generation tweaks.
Fix up Warp3DCachedImageModule to work with my directory structure.
Remove some excess code from it.
Clean up maptile directory creation code.
When the generate map command is given, generate the map.
The month check seems a bit dodgy, but I'll let it ride for now.
Diffstat (limited to 'OpenSim/Services/GridService')
-rw-r--r-- | OpenSim/Services/GridService/HypergridLinker.cs | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs index 3c7295a..1791098 100644 --- a/OpenSim/Services/GridService/HypergridLinker.cs +++ b/OpenSim/Services/GridService/HypergridLinker.cs | |||
@@ -109,17 +109,14 @@ namespace OpenSim.Services.GridService | |||
109 | 109 | ||
110 | m_log.Debug("[HYPERGRID LINKER]: Loaded all services..."); | 110 | m_log.Debug("[HYPERGRID LINKER]: Loaded all services..."); |
111 | 111 | ||
112 | if (!string.IsNullOrEmpty(m_MapTileDirectory)) | 112 | try |
113 | { | 113 | { |
114 | try | 114 | Directory.CreateDirectory(m_MapTileDirectory); |
115 | { | 115 | } |
116 | Directory.CreateDirectory(m_MapTileDirectory); | 116 | catch (Exception e) |
117 | } | 117 | { |
118 | catch (Exception e) | 118 | m_log.WarnFormat("[HYPERGRID LINKER]: Could not create map tile storage directory {0}: {1}", m_MapTileDirectory, e); |
119 | { | 119 | m_MapTileDirectory = string.Empty; |
120 | m_log.WarnFormat("[HYPERGRID LINKER]: Could not create map tile storage directory {0}: {1}", m_MapTileDirectory, e); | ||
121 | m_MapTileDirectory = string.Empty; | ||
122 | } | ||
123 | } | 120 | } |
124 | 121 | ||
125 | if (MainConsole.Instance != null) | 122 | if (MainConsole.Instance != null) |