mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Make ReadConfig a general features of consoles, rather than type dependent
This commit is contained in:
10
OpenSim/Server/Base/ServicesServerBase.cs
Normal file → Executable file
10
OpenSim/Server/Base/ServicesServerBase.cs
Normal file → Executable file
@@ -147,23 +147,15 @@ namespace OpenSim.Server.Base
|
||||
consoleType = startupConfig.GetString("console", consoleType);
|
||||
|
||||
if (consoleType == "basic")
|
||||
{
|
||||
MainConsole.Instance = new CommandConsole(prompt);
|
||||
}
|
||||
else if (consoleType == "rest")
|
||||
{
|
||||
MainConsole.Instance = new RemoteConsole(prompt);
|
||||
((RemoteConsole)MainConsole.Instance).ReadConfig(Config);
|
||||
}
|
||||
else if (consoleType == "mock")
|
||||
{
|
||||
MainConsole.Instance = new MockConsole();
|
||||
}
|
||||
else if (consoleType == "local")
|
||||
{
|
||||
MainConsole.Instance = new LocalConsole(prompt, startupConfig);
|
||||
}
|
||||
|
||||
MainConsole.Instance.ReadConfig(Config);
|
||||
m_console = MainConsole.Instance;
|
||||
|
||||
if (logConfig != null)
|
||||
|
||||
Reference in New Issue
Block a user