aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/Application.cs
diff options
context:
space:
mode:
authordiva2009-04-27 00:16:59 +0000
committerdiva2009-04-27 00:16:59 +0000
commitd8313e314feddc492ec9d8e657aa7d0a15a7004b (patch)
tree4024a8bebbc83745b1df22981b001559346bc247 /OpenSim/Region/Application/Application.cs
parentHGWorldMap got a bit out of sync during the introduction of the new module sy... (diff)
downloadopensim-SC_OLD-d8313e314feddc492ec9d8e657aa7d0a15a7004b.zip
opensim-SC_OLD-d8313e314feddc492ec9d8e657aa7d0a15a7004b.tar.gz
opensim-SC_OLD-d8313e314feddc492ec9d8e657aa7d0a15a7004b.tar.bz2
opensim-SC_OLD-d8313e314feddc492ec9d8e657aa7d0a15a7004b.tar.xz
Getting rid of -hypergrid=true on the command line. This config now goes inside OpenSim.ini in the Startup section. This makes the HG compatible with -background, and prepares the way for further work on HG-related config vars. Might help with mantis #3527.
Diffstat (limited to 'OpenSim/Region/Application/Application.cs')
-rw-r--r--OpenSim/Region/Application/Application.cs8
1 files changed, 1 insertions, 7 deletions
diff --git a/OpenSim/Region/Application/Application.cs b/OpenSim/Region/Application/Application.cs
index 7244dc9..46e3fc9 100644
--- a/OpenSim/Region/Application/Application.cs
+++ b/OpenSim/Region/Application/Application.cs
@@ -94,14 +94,12 @@ namespace OpenSim
94 configSource.AddSwitch("Startup", "inidirectory"); 94 configSource.AddSwitch("Startup", "inidirectory");
95 configSource.AddSwitch("Startup", "gridmode"); 95 configSource.AddSwitch("Startup", "gridmode");
96 configSource.AddSwitch("Startup", "physics"); 96 configSource.AddSwitch("Startup", "physics");
97 configSource.AddSwitch("Startup", "hypergrid");
98 configSource.AddSwitch("Startup", "gui"); 97 configSource.AddSwitch("Startup", "gui");
99 98
100 configSource.AddConfig("StandAlone"); 99 configSource.AddConfig("StandAlone");
101 configSource.AddConfig("Network"); 100 configSource.AddConfig("Network");
102 101
103 bool background = configSource.Configs["Startup"].GetBoolean("background", false); 102 bool background = configSource.Configs["Startup"].GetBoolean("background", false);
104 bool hgrid = configSource.Configs["Startup"].GetBoolean("hypergrid", false);
105 m_saveCrashDumps = configSource.Configs["Startup"].GetBoolean("save_crashes", false); 103 m_saveCrashDumps = configSource.Configs["Startup"].GetBoolean("save_crashes", false);
106 m_crashDir = configSource.Configs["Startup"].GetString("crash_dir", m_crashDir); 104 m_crashDir = configSource.Configs["Startup"].GetString("crash_dir", m_crashDir);
107 105
@@ -112,11 +110,7 @@ namespace OpenSim
112 } 110 }
113 else 111 else
114 { 112 {
115 m_sim = null; 113 m_sim = new OpenSim(configSource);
116 if (hgrid)
117 m_sim = new HGOpenSimNode(configSource);
118 else
119 m_sim = new OpenSim(configSource);
120 114
121 m_sim.Startup(); 115 m_sim.Startup();
122 116