diff options
author | onefang | 2019-05-19 21:24:15 +1000 |
---|---|---|
committer | onefang | 2019-05-19 21:24:15 +1000 |
commit | 5e4d6cab00cb29cd088ab7b62ab13aff103b64cb (patch) | |
tree | a9fbc62df9eb2d1d9ba2698d8552eae71eca20d8 /OpenSim/Tools/Configger | |
parent | Add a build script. (diff) | |
download | opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.zip opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.gz opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.bz2 opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.xz |
Dump OpenSim 0.9.0.1 into it's own branch.
Diffstat (limited to 'OpenSim/Tools/Configger')
-rw-r--r-- | OpenSim/Tools/Configger/ConfigurationLoader.cs | 36 | ||||
-rw-r--r-- | OpenSim/Tools/Configger/Properties/AssemblyInfo.cs | 10 | ||||
-rw-r--r-- | OpenSim/Tools/Configger/Util.cs | 8 |
3 files changed, 43 insertions, 11 deletions
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 | |||
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)) |
@@ -234,21 +264,17 @@ namespace OpenSim.Tools.Configger | |||
234 | config.Set("region_info_source", "filesystem"); | 264 | config.Set("region_info_source", "filesystem"); |
235 | config.Set("allow_regionless", false); | 265 | config.Set("allow_regionless", false); |
236 | 266 | ||
237 | config.Set("gridmode", false); | ||
238 | config.Set("physics", "OpenDynamicsEngine"); | 267 | config.Set("physics", "OpenDynamicsEngine"); |
239 | config.Set("meshing", "Meshmerizer"); | 268 | config.Set("meshing", "Meshmerizer"); |
240 | config.Set("physical_prim", true); | 269 | config.Set("physical_prim", true); |
241 | config.Set("serverside_object_permissions", true); | 270 | config.Set("serverside_object_permissions", true); |
242 | config.Set("storage_prim_inventories", true); | ||
243 | config.Set("startup_console_commands_file", String.Empty); | 271 | config.Set("startup_console_commands_file", String.Empty); |
244 | config.Set("shutdown_console_commands_file", String.Empty); | 272 | config.Set("shutdown_console_commands_file", String.Empty); |
245 | config.Set("DefaultScriptEngine", "XEngine"); | 273 | config.Set("DefaultScriptEngine", "XEngine"); |
246 | config.Set("clientstack_plugin", "OpenSim.Region.ClientStack.LindenUDP.dll"); | 274 | config.Set("clientstack_plugin", "OpenSim.Region.ClientStack.LindenUDP.dll"); |
247 | // life doesn't really work without this | ||
248 | config.Set("EventQueue", true); | ||
249 | } | 275 | } |
250 | 276 | ||
251 | return defaultConfig; | 277 | return defaultConfig; |
252 | } | 278 | } |
253 | } | 279 | } |
254 | } \ No newline at end of file | 280 | } |
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 @@ | |||
2 | using System.Runtime.CompilerServices; | 2 | using System.Runtime.CompilerServices; |
3 | using System.Runtime.InteropServices; | 3 | using System.Runtime.InteropServices; |
4 | 4 | ||
5 | // General Information about an assembly is controlled through the following | 5 | // General Information about an assembly is controlled through the following |
6 | // set of attributes. Change these attribute values to modify the information | 6 | // set of attributes. Change these attribute values to modify the information |
7 | // associated with an assembly. | 7 | // associated with an assembly. |
8 | [assembly: AssemblyTitle("OpenSim.Tools.Configger")] | 8 | [assembly: AssemblyTitle("OpenSim.Tools.Configger")] |
@@ -14,8 +14,8 @@ using System.Runtime.InteropServices; | |||
14 | [assembly: AssemblyTrademark("")] | 14 | [assembly: AssemblyTrademark("")] |
15 | [assembly: AssemblyCulture("")] | 15 | [assembly: AssemblyCulture("")] |
16 | 16 | ||
17 | // Setting ComVisible to false makes the types in this assembly not visible | 17 | // Setting ComVisible to false makes the types in this assembly not visible |
18 | // to COM components. If you need to access a type in this assembly from | 18 | // to COM components. If you need to access a type in this assembly from |
19 | // COM, set the ComVisible attribute to true on that type. | 19 | // COM, set the ComVisible attribute to true on that type. |
20 | [assembly: ComVisible(false)] | 20 | [assembly: ComVisible(false)] |
21 | 21 | ||
@@ -25,9 +25,9 @@ using System.Runtime.InteropServices; | |||
25 | // Version information for an assembly consists of the following four values: | 25 | // Version information for an assembly consists of the following four values: |
26 | // | 26 | // |
27 | // Major Version | 27 | // Major Version |
28 | // Minor Version | 28 | // Minor Version |
29 | // Build Number | 29 | // Build Number |
30 | // Revision | 30 | // Revision |
31 | // | 31 | // |
32 | [assembly: AssemblyVersion("0.8.3.*")] | 32 | [assembly: AssemblyVersion(OpenSim.VersionInfo.AssemblyVersionNumber)] |
33 | 33 | ||
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 | |||
58 | vol = vcomps[0]; | 58 | vol = vcomps[0]; |
59 | } | 59 | } |
60 | } | 60 | } |
61 | 61 | ||
62 | string[] comps = path.Split(new char[] {Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar}, StringSplitOptions.RemoveEmptyEntries); | 62 | string[] comps = path.Split(new char[] {Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar}, StringSplitOptions.RemoveEmptyEntries); |
63 | 63 | ||
64 | // Glob | 64 | // Glob |
@@ -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 | } |