aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/RegionLoader/Filesystem/RegionLoaderFileSystem.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-04-11 04:21:29 +0000
committerAdam Frisby2008-04-11 04:21:29 +0000
commit00b8e04eceab48cd1fb10791c3ddb55409ce3169 (patch)
tree15e2c49f72b681ad1c13e9795ff94ab3d4d40af7 /OpenSim/Framework/RegionLoader/Filesystem/RegionLoaderFileSystem.cs
parent* Updated MapImageModule to support primitives showing on the world map image... (diff)
downloadopensim-SC_OLD-00b8e04eceab48cd1fb10791c3ddb55409ce3169.zip
opensim-SC_OLD-00b8e04eceab48cd1fb10791c3ddb55409ce3169.tar.gz
opensim-SC_OLD-00b8e04eceab48cd1fb10791c3ddb55409ce3169.tar.bz2
opensim-SC_OLD-00b8e04eceab48cd1fb10791c3ddb55409ce3169.tar.xz
* Added a "regionload_regionsdir" option to OpenSim.ini which determines where Region.XML files are stored. If not set, it will default to the usual location.
Diffstat (limited to 'OpenSim/Framework/RegionLoader/Filesystem/RegionLoaderFileSystem.cs')
-rw-r--r--OpenSim/Framework/RegionLoader/Filesystem/RegionLoaderFileSystem.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Framework/RegionLoader/Filesystem/RegionLoaderFileSystem.cs b/OpenSim/Framework/RegionLoader/Filesystem/RegionLoaderFileSystem.cs
index 0902bee..ad8b4a0 100644
--- a/OpenSim/Framework/RegionLoader/Filesystem/RegionLoaderFileSystem.cs
+++ b/OpenSim/Framework/RegionLoader/Filesystem/RegionLoaderFileSystem.cs
@@ -32,14 +32,27 @@ namespace OpenSim.Framework.RegionLoader.Filesystem
32{ 32{
33 public class RegionLoaderFileSystem : IRegionLoader 33 public class RegionLoaderFileSystem : IRegionLoader
34 { 34 {
35 private IniConfigSource m_configSouce;
36
35 public void SetIniConfigSource(IniConfigSource configSource) 37 public void SetIniConfigSource(IniConfigSource configSource)
36 { 38 {
39 m_configSouce = configSource;
37 } 40 }
38 41
39 public RegionInfo[] LoadRegions() 42 public RegionInfo[] LoadRegions()
40 { 43 {
41 string regionConfigPath = Path.Combine(Util.configDir(), "Regions"); 44 string regionConfigPath = Path.Combine(Util.configDir(), "Regions");
42 45
46 try
47 {
48 IniConfig startupConfig = (IniConfig)m_configSouce.Configs["Startup"];
49 regionConfigPath = startupConfig.GetString("regionload_regionsdir", regionConfigPath).Trim();
50 }
51 catch (System.Exception)
52 {
53 // No INI setting recorded.
54 }
55
43 if (!Directory.Exists(regionConfigPath)) 56 if (!Directory.Exists(regionConfigPath))
44 { 57 {
45 Directory.CreateDirectory(regionConfigPath); 58 Directory.CreateDirectory(regionConfigPath);