aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorDiva Canto2015-12-24 10:05:59 -0800
committerDiva Canto2015-12-24 10:05:59 -0800
commit52ebb3f2fb987edf79ccc04622bb6de20d60b954 (patch)
tree8d9fffdfee6c471b6627750149a8e84b4a56a3aa /OpenSim
parentenable the upload region map texture asset for large regions for large region... (diff)
downloadopensim-SC_OLD-52ebb3f2fb987edf79ccc04622bb6de20d60b954.zip
opensim-SC_OLD-52ebb3f2fb987edf79ccc04622bb6de20d60b954.tar.gz
opensim-SC_OLD-52ebb3f2fb987edf79ccc04622bb6de20d60b954.tar.bz2
opensim-SC_OLD-52ebb3f2fb987edf79ccc04622bb6de20d60b954.tar.xz
The configger tool hadn't been updated since the introduction of OpenSimDefaults! :0
It is updated now.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Tools/Configger/ConfigurationLoader.cs30
-rw-r--r--OpenSim/Tools/Configger/Util.cs6
2 files changed, 36 insertions, 0 deletions
diff --git a/OpenSim/Tools/Configger/ConfigurationLoader.cs b/OpenSim/Tools/Configger/ConfigurationLoader.cs
index f1d3649..4190f10 100644
--- a/OpenSim/Tools/Configger/ConfigurationLoader.cs
+++ b/OpenSim/Tools/Configger/ConfigurationLoader.cs
@@ -70,6 +70,36 @@ namespace OpenSim.Tools.Configger
70 70
71 List<string> sources = new List<string>(); 71 List<string> sources = new List<string>();
72 72
73 string masterFileName = startupConfig.GetString("inimaster", "OpenSimDefaults.ini");
74
75 if (masterFileName == "none")
76 masterFileName = String.Empty;
77
78 if (IsUri(masterFileName))
79 {
80 if (!sources.Contains(masterFileName))
81 sources.Add(masterFileName);
82 }
83 else
84 {
85 string masterFilePath = Path.GetFullPath(
86 Path.Combine(Util.configDir(), masterFileName));
87
88 if (masterFileName != String.Empty)
89 {
90 if (File.Exists(masterFilePath))
91 {
92 if (!sources.Contains(masterFilePath))
93 sources.Add(masterFilePath);
94 }
95 else
96 {
97 m_log.ErrorFormat("Master ini file {0} not found", Path.GetFullPath(masterFilePath));
98 Environment.Exit(1);
99 }
100 }
101 }
102
73 string iniFileName = startupConfig.GetString("inifile", Path.Combine(".", "OpenSim.ini")); 103 string iniFileName = startupConfig.GetString("inifile", Path.Combine(".", "OpenSim.ini"));
74 104
75 if (IsUri(iniFileName)) 105 if (IsUri(iniFileName))
diff --git a/OpenSim/Tools/Configger/Util.cs b/OpenSim/Tools/Configger/Util.cs
index fe7744d..1a24034 100644
--- a/OpenSim/Tools/Configger/Util.cs
+++ b/OpenSim/Tools/Configger/Util.cs
@@ -102,5 +102,11 @@ namespace OpenSim.Tools.Configger
102 102
103 return found.ToArray(); 103 return found.ToArray();
104 } 104 }
105
106 public static string configDir()
107 {
108 return ".";
109 }
110
105 } 111 }
106} 112}