diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Serialiser/SerialiserModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Serialiser/SerialiserModule.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/World/Serialiser/SerialiserModule.cs b/OpenSim/Region/CoreModules/World/Serialiser/SerialiserModule.cs index 98fe493..04062b0 100644 --- a/OpenSim/Region/CoreModules/World/Serialiser/SerialiserModule.cs +++ b/OpenSim/Region/CoreModules/World/Serialiser/SerialiserModule.cs | |||
@@ -48,7 +48,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser | |||
48 | 48 | ||
49 | private Commander m_commander = new Commander("export"); | 49 | private Commander m_commander = new Commander("export"); |
50 | private List<Scene> m_regions = new List<Scene>(); | 50 | private List<Scene> m_regions = new List<Scene>(); |
51 | private string m_savedir = "exports" + "/"; | 51 | private string m_savedir = "exports"; |
52 | private List<IFileSerialiser> m_serialisers = new List<IFileSerialiser>(); | 52 | private List<IFileSerialiser> m_serialisers = new List<IFileSerialiser>(); |
53 | 53 | ||
54 | #region ISharedRegionModule Members | 54 | #region ISharedRegionModule Members |
@@ -192,14 +192,14 @@ namespace OpenSim.Region.CoreModules.World.Serialiser | |||
192 | } | 192 | } |
193 | } | 193 | } |
194 | 194 | ||
195 | TextWriter regionInfoWriter = new StreamWriter(saveDir + "README.TXT"); | 195 | TextWriter regionInfoWriter = new StreamWriter(Path.Combine(saveDir, "README.TXT")); |
196 | regionInfoWriter.WriteLine("Region Name: " + scene.RegionInfo.RegionName); | 196 | regionInfoWriter.WriteLine("Region Name: " + scene.RegionInfo.RegionName); |
197 | regionInfoWriter.WriteLine("Region ID: " + scene.RegionInfo.RegionID.ToString()); | 197 | regionInfoWriter.WriteLine("Region ID: " + scene.RegionInfo.RegionID.ToString()); |
198 | regionInfoWriter.WriteLine("Backup Time: UTC " + DateTime.UtcNow.ToString()); | 198 | regionInfoWriter.WriteLine("Backup Time: UTC " + DateTime.UtcNow.ToString()); |
199 | regionInfoWriter.WriteLine("Serialise Version: 0.1"); | 199 | regionInfoWriter.WriteLine("Serialise Version: 0.1"); |
200 | regionInfoWriter.Close(); | 200 | regionInfoWriter.Close(); |
201 | 201 | ||
202 | TextWriter manifestWriter = new StreamWriter(saveDir + "region.manifest"); | 202 | TextWriter manifestWriter = new StreamWriter(Path.Combine(saveDir, "region.manifest")); |
203 | foreach (string line in results) | 203 | foreach (string line in results) |
204 | { | 204 | { |
205 | manifestWriter.WriteLine(line); | 205 | manifestWriter.WriteLine(line); |
@@ -231,7 +231,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser | |||
231 | if (region.RegionInfo.RegionName == (string) args[0]) | 231 | if (region.RegionInfo.RegionName == (string) args[0]) |
232 | { | 232 | { |
233 | // List<string> results = SerialiseRegion(region, m_savedir + region.RegionInfo.RegionID.ToString() + "/"); | 233 | // List<string> results = SerialiseRegion(region, m_savedir + region.RegionInfo.RegionID.ToString() + "/"); |
234 | SerialiseRegion(region, m_savedir + region.RegionInfo.RegionID.ToString() + "/"); | 234 | SerialiseRegion(region, Path.Combine(m_savedir, region.RegionInfo.RegionID.ToString())); |
235 | } | 235 | } |
236 | } | 236 | } |
237 | } | 237 | } |
@@ -241,7 +241,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser | |||
241 | foreach (Scene region in m_regions) | 241 | foreach (Scene region in m_regions) |
242 | { | 242 | { |
243 | // List<string> results = SerialiseRegion(region, m_savedir + region.RegionInfo.RegionID.ToString() + "/"); | 243 | // List<string> results = SerialiseRegion(region, m_savedir + region.RegionInfo.RegionID.ToString() + "/"); |
244 | SerialiseRegion(region, m_savedir + region.RegionInfo.RegionID.ToString() + "/"); | 244 | SerialiseRegion(region, Path.Combine(m_savedir, region.RegionInfo.RegionID.ToString())); |
245 | } | 245 | } |
246 | } | 246 | } |
247 | 247 | ||