From 363d7054ea9e8032e163bf3934cba63761ae4243 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Thu, 24 Dec 2015 10:05:59 -0800 Subject: [PATCH] The configger tool hadn't been updated since the introduction of OpenSimDefaults! :0 It is updated now. --- .../Tools/Configger/ConfigurationLoader.cs | 30 +++++++++++++++++++ OpenSim/Tools/Configger/Util.cs | 6 ++++ 2 files changed, 36 insertions(+) diff --git a/OpenSim/Tools/Configger/ConfigurationLoader.cs b/OpenSim/Tools/Configger/ConfigurationLoader.cs index f1d3649258..4190f107a4 100644 --- a/OpenSim/Tools/Configger/ConfigurationLoader.cs +++ b/OpenSim/Tools/Configger/ConfigurationLoader.cs @@ -70,6 +70,36 @@ namespace OpenSim.Tools.Configger List sources = new List(); + string masterFileName = startupConfig.GetString("inimaster", "OpenSimDefaults.ini"); + + if (masterFileName == "none") + masterFileName = String.Empty; + + if (IsUri(masterFileName)) + { + if (!sources.Contains(masterFileName)) + sources.Add(masterFileName); + } + else + { + string masterFilePath = Path.GetFullPath( + Path.Combine(Util.configDir(), masterFileName)); + + if (masterFileName != String.Empty) + { + if (File.Exists(masterFilePath)) + { + if (!sources.Contains(masterFilePath)) + sources.Add(masterFilePath); + } + else + { + m_log.ErrorFormat("Master ini file {0} not found", Path.GetFullPath(masterFilePath)); + Environment.Exit(1); + } + } + } + string iniFileName = startupConfig.GetString("inifile", Path.Combine(".", "OpenSim.ini")); if (IsUri(iniFileName)) diff --git a/OpenSim/Tools/Configger/Util.cs b/OpenSim/Tools/Configger/Util.cs index fe7744d0b6..1a240340d8 100644 --- a/OpenSim/Tools/Configger/Util.cs +++ b/OpenSim/Tools/Configger/Util.cs @@ -102,5 +102,11 @@ namespace OpenSim.Tools.Configger return found.ToArray(); } + + public static string configDir() + { + return "."; + } + } }