diff options
Diffstat (limited to 'OpenSim/Region/Application/ConfigurationLoader.cs')
-rw-r--r-- | OpenSim/Region/Application/ConfigurationLoader.cs | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/OpenSim/Region/Application/ConfigurationLoader.cs b/OpenSim/Region/Application/ConfigurationLoader.cs index cf7db97..19db7a9 100644 --- a/OpenSim/Region/Application/ConfigurationLoader.cs +++ b/OpenSim/Region/Application/ConfigurationLoader.cs | |||
@@ -43,10 +43,10 @@ namespace OpenSim | |||
43 | public class ConfigurationLoader | 43 | public class ConfigurationLoader |
44 | { | 44 | { |
45 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 45 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
46 | 46 | ||
47 | /// <summary> | 47 | /// <summary> |
48 | /// Various Config settings the region needs to start | 48 | /// Various Config settings the region needs to start |
49 | /// Physics Engine, Mesh Engine, GridMode, PhysicsPrim allowed, Neighbor, | 49 | /// Physics Engine, Mesh Engine, GridMode, PhysicsPrim allowed, Neighbor, |
50 | /// StorageDLL, Storage Connection String, Estate connection String, Client Stack | 50 | /// StorageDLL, Storage Connection String, Estate connection String, Client Stack |
51 | /// Standalone settings. | 51 | /// Standalone settings. |
52 | /// </summary> | 52 | /// </summary> |
@@ -154,7 +154,7 @@ namespace OpenSim | |||
154 | } | 154 | } |
155 | 155 | ||
156 | // Override distro settings with contents of inidirectory | 156 | // Override distro settings with contents of inidirectory |
157 | string iniDirPath = Path.GetFullPath(Path.Combine(Util.configDir(), startupConfig.GetString("inidirectory", "config"))); | 157 | string iniDirPath = startupConfig.GetString("inidirectory", Util.configDir()); |
158 | 158 | ||
159 | if (Directory.Exists(iniDirPath)) | 159 | if (Directory.Exists(iniDirPath)) |
160 | { | 160 | { |
@@ -187,7 +187,7 @@ namespace OpenSim | |||
187 | { | 187 | { |
188 | iniFileExists = true; | 188 | iniFileExists = true; |
189 | AddIncludes(overrideConfig, overrideSources); | 189 | AddIncludes(overrideConfig, overrideSources); |
190 | } | 190 | } |
191 | } | 191 | } |
192 | m_config.Source.Merge(overrideConfig.Source); | 192 | m_config.Source.Merge(overrideConfig.Source); |
193 | } | 193 | } |
@@ -197,7 +197,7 @@ namespace OpenSim | |||
197 | { | 197 | { |
198 | m_log.FatalFormat("[CONFIG]: Could not load any configuration"); | 198 | m_log.FatalFormat("[CONFIG]: Could not load any configuration"); |
199 | Environment.Exit(1); | 199 | Environment.Exit(1); |
200 | } | 200 | } |
201 | else if (!iniFileExists) | 201 | else if (!iniFileExists) |
202 | { | 202 | { |
203 | m_log.FatalFormat("[CONFIG]: Could not load any configuration"); | 203 | m_log.FatalFormat("[CONFIG]: Could not load any configuration"); |
@@ -256,14 +256,14 @@ namespace OpenSim | |||
256 | string path = Path.Combine(basepath, chunkWithoutWildcards); | 256 | string path = Path.Combine(basepath, chunkWithoutWildcards); |
257 | path = Path.GetFullPath(path) + chunkWithWildcards; | 257 | path = Path.GetFullPath(path) + chunkWithWildcards; |
258 | string[] paths = Util.Glob(path); | 258 | string[] paths = Util.Glob(path); |
259 | 259 | ||
260 | // If the include path contains no wildcards, then warn the user that it wasn't found. | 260 | // If the include path contains no wildcards, then warn the user that it wasn't found. |
261 | if (wildcardIndex == -1 && paths.Length == 0) | 261 | if (wildcardIndex == -1 && paths.Length == 0) |
262 | { | 262 | { |
263 | m_log.WarnFormat("[CONFIG]: Could not find include file {0}", path); | 263 | m_log.WarnFormat("[CONFIG]: Could not find include file {0}", path); |
264 | } | 264 | } |
265 | else | 265 | else |
266 | { | 266 | { |
267 | foreach (string p in paths) | 267 | foreach (string p in paths) |
268 | { | 268 | { |
269 | if (!sources.Contains(p)) | 269 | if (!sources.Contains(p)) |
@@ -347,13 +347,10 @@ namespace OpenSim | |||
347 | config.Set("meshing", "Meshmerizer"); | 347 | config.Set("meshing", "Meshmerizer"); |
348 | config.Set("physical_prim", true); | 348 | config.Set("physical_prim", true); |
349 | config.Set("serverside_object_permissions", true); | 349 | config.Set("serverside_object_permissions", true); |
350 | config.Set("storage_prim_inventories", true); | ||
351 | config.Set("startup_console_commands_file", String.Empty); | 350 | config.Set("startup_console_commands_file", String.Empty); |
352 | config.Set("shutdown_console_commands_file", String.Empty); | 351 | config.Set("shutdown_console_commands_file", String.Empty); |
353 | config.Set("DefaultScriptEngine", "XEngine"); | 352 | config.Set("DefaultScriptEngine", "XEngine"); |
354 | config.Set("clientstack_plugin", "OpenSim.Region.ClientStack.LindenUDP.dll"); | 353 | config.Set("clientstack_plugin", "OpenSim.Region.ClientStack.LindenUDP.dll"); |
355 | // life doesn't really work without this | ||
356 | config.Set("EventQueue", true); | ||
357 | } | 354 | } |
358 | 355 | ||
359 | { | 356 | { |
@@ -379,11 +376,11 @@ namespace OpenSim | |||
379 | m_configSettings.PhysicsEngine = startupConfig.GetString("physics"); | 376 | m_configSettings.PhysicsEngine = startupConfig.GetString("physics"); |
380 | m_configSettings.MeshEngineName = startupConfig.GetString("meshing"); | 377 | m_configSettings.MeshEngineName = startupConfig.GetString("meshing"); |
381 | 378 | ||
382 | m_configSettings.ClientstackDll | 379 | m_configSettings.ClientstackDll |
383 | = startupConfig.GetString("clientstack_plugin", "OpenSim.Region.ClientStack.LindenUDP.dll"); | 380 | = startupConfig.GetString("clientstack_plugin", "OpenSim.Region.ClientStack.LindenUDP.dll"); |
384 | } | 381 | } |
385 | 382 | ||
386 | m_networkServersInfo.loadFromConfiguration(m_config.Source); | 383 | m_networkServersInfo.loadFromConfiguration(m_config.Source); |
387 | } | 384 | } |
388 | } | 385 | } |
389 | } \ No newline at end of file | 386 | } |