aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorMelanie Thielker2009-06-26 00:00:20 +0000
committerMelanie Thielker2009-06-26 00:00:20 +0000
commit5869598c4ca462bfda3b83b707c57433048f364c (patch)
tree551539a58d5c8f77654835060b39a558eb09d91a /OpenSim/Framework
parentMake create region save the new region to ini file format if the name (diff)
downloadopensim-SC-5869598c4ca462bfda3b83b707c57433048f364c.zip
opensim-SC-5869598c4ca462bfda3b83b707c57433048f364c.tar.gz
opensim-SC-5869598c4ca462bfda3b83b707c57433048f364c.tar.bz2
opensim-SC-5869598c4ca462bfda3b83b707c57433048f364c.tar.xz
Make delete-region delete the section from an ini file. Will delete the whole
file if it has no sections left.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/RegionInfo.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs
index eb10fac..504b303 100644
--- a/OpenSim/Framework/RegionInfo.cs
+++ b/OpenSim/Framework/RegionInfo.cs
@@ -259,6 +259,8 @@ namespace OpenSim.Framework
259 259
260 newFile.Save(filename); 260 newFile.Save(filename);
261 261
262 RegionFile = filename;
263
262 return; 264 return;
263 } 265 }
264 266
@@ -273,6 +275,8 @@ namespace OpenSim.Framework
273 if (configName != String.Empty && saveFile) 275 if (configName != String.Empty && saveFile)
274 source.Save(filename); 276 source.Save(filename);
275 277
278 RegionFile = filename;
279
276 return; 280 return;
277 } 281 }
278 282
@@ -285,6 +289,8 @@ namespace OpenSim.Framework
285 289
286 ReadNiniConfig(xmlsource, configName); 290 ReadNiniConfig(xmlsource, configName);
287 291
292 RegionFile = filename;
293
288 return; 294 return;
289 } 295 }
290 catch (Exception) 296 catch (Exception)