From 4c9cc74ac263d1d99177e8024e51c86d826b9d7a Mon Sep 17 00:00:00 2001 From: MW Date: Mon, 6 Aug 2007 16:33:54 +0000 Subject: Re-added Grid mode. (which had got removed/disabled in revision 1515) --- OpenSim/Region/Application/OpenSimMain.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Application/OpenSimMain.cs') diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index e57ba27..248bd42 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -77,14 +77,14 @@ namespace OpenSim string iniFile = startupSource.Configs["Startup"].GetString("inifile", "NA"); if (iniFile != "NA") { - //a ini is set to be used for startup settings + //a INI file is set to be used for startup settings string iniFilePath = Path.Combine(Util.configDir(), iniFile); if (File.Exists(iniFilePath)) { startupSource = new IniConfigSource(iniFilePath); //enable follow line, if we want the original config source(normally commandline args) merged with ini file settings. - //in this case we have it so if both sources have the same named setting, command line value will overwrite the ini file value. + //in this case we have it so that if both sources have the same named setting, the command line value will overwrite the ini file value. //(as if someone has bothered to enter a command line arg, we should take notice of it) //startupSource.Merge(configSource); } @@ -121,6 +121,15 @@ namespace OpenSim m_httpServer.AddStreamHandler(new SimStatusHandler()); } + if (m_sandbox) + { + m_commsManager = new CommunicationsLocal(m_networkServersInfo, m_httpServer, m_assetCache); + } + else + { + m_commsManager = new CommunicationsOGS1(m_networkServersInfo, m_httpServer, m_assetCache); + } + string regionConfigPath = Path.Combine(Util.configDir(), "Regions"); if (!Directory.Exists(regionConfigPath)) @@ -227,6 +236,7 @@ namespace OpenSim } #endregion + /// /// Performs any last-minute sanity checking and shuts down the region server /// -- cgit v1.1