mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
* Added new commandline option -config <configfile.xml>
Note: This is untested but is a very simple change and should 'just work'. If someone can test, appreciated.
This commit is contained in:
@@ -87,10 +87,11 @@ namespace OpenSim
|
||||
public bool user_accounts = false;
|
||||
public bool gridLocalAsset = false;
|
||||
private bool configFileSetup = false;
|
||||
public string m_config;
|
||||
|
||||
protected ConsoleBase m_console;
|
||||
|
||||
public OpenSimMain(bool sandBoxMode, bool startLoginServer, string physicsEngine, bool useConfigFile, bool verbose)
|
||||
public OpenSimMain(bool sandBoxMode, bool startLoginServer, string physicsEngine, bool useConfigFile, bool verbose, string configFile)
|
||||
{
|
||||
this.configFileSetup = useConfigFile;
|
||||
m_sandbox = sandBoxMode;
|
||||
@@ -109,7 +110,7 @@ namespace OpenSim
|
||||
this.regionData = new RegionInfo();
|
||||
try
|
||||
{
|
||||
this.localConfig = new XmlConfig("simconfig.xml");
|
||||
this.localConfig = new XmlConfig(m_config);
|
||||
this.localConfig.LoadData();
|
||||
}
|
||||
catch (Exception e)
|
||||
|
||||
Reference in New Issue
Block a user