From 5e4d6cab00cb29cd088ab7b62ab13aff103b64cb Mon Sep 17 00:00:00 2001 From: onefang Date: Sun, 19 May 2019 21:24:15 +1000 Subject: Dump OpenSim 0.9.0.1 into it's own branch. --- OpenSim/Tools/Configger/ConfigurationLoader.cs | 36 +++++++++++++++++++--- OpenSim/Tools/Configger/Properties/AssemblyInfo.cs | 10 +++--- OpenSim/Tools/Configger/Util.cs | 8 ++++- 3 files changed, 43 insertions(+), 11 deletions(-) (limited to 'OpenSim/Tools/Configger') diff --git a/OpenSim/Tools/Configger/ConfigurationLoader.cs b/OpenSim/Tools/Configger/ConfigurationLoader.cs index f1d3649..fa3a5bf 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)) @@ -234,21 +264,17 @@ namespace OpenSim.Tools.Configger config.Set("region_info_source", "filesystem"); config.Set("allow_regionless", false); - config.Set("gridmode", false); config.Set("physics", "OpenDynamicsEngine"); config.Set("meshing", "Meshmerizer"); config.Set("physical_prim", true); config.Set("serverside_object_permissions", true); - config.Set("storage_prim_inventories", true); config.Set("startup_console_commands_file", String.Empty); config.Set("shutdown_console_commands_file", String.Empty); config.Set("DefaultScriptEngine", "XEngine"); config.Set("clientstack_plugin", "OpenSim.Region.ClientStack.LindenUDP.dll"); - // life doesn't really work without this - config.Set("EventQueue", true); } return defaultConfig; } } -} \ No newline at end of file +} diff --git a/OpenSim/Tools/Configger/Properties/AssemblyInfo.cs b/OpenSim/Tools/Configger/Properties/AssemblyInfo.cs index 359d854..50ff5a4 100644 --- a/OpenSim/Tools/Configger/Properties/AssemblyInfo.cs +++ b/OpenSim/Tools/Configger/Properties/AssemblyInfo.cs @@ -2,7 +2,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("OpenSim.Tools.Configger")] @@ -14,8 +14,8 @@ using System.Runtime.InteropServices; [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] @@ -25,9 +25,9 @@ using System.Runtime.InteropServices; // Version information for an assembly consists of the following four values: // // Major Version -// Minor Version +// Minor Version // Build Number // Revision // -[assembly: AssemblyVersion("0.8.3.*")] +[assembly: AssemblyVersion(OpenSim.VersionInfo.AssemblyVersionNumber)] diff --git a/OpenSim/Tools/Configger/Util.cs b/OpenSim/Tools/Configger/Util.cs index fe7744d..d25b666 100644 --- a/OpenSim/Tools/Configger/Util.cs +++ b/OpenSim/Tools/Configger/Util.cs @@ -58,7 +58,7 @@ namespace OpenSim.Tools.Configger vol = vcomps[0]; } } - + string[] comps = path.Split(new char[] {Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar}, StringSplitOptions.RemoveEmptyEntries); // Glob @@ -102,5 +102,11 @@ namespace OpenSim.Tools.Configger return found.ToArray(); } + + public static string configDir() + { + return "."; + } + } } -- cgit v1.1