* 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:
Adam Frisby
2007-04-27 20:32:02 +00:00
parent 7e29f458ad
commit feca5d22c6
2 changed files with 17 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ namespace OpenSim
bool gridLocalAsset = false;
bool useConfigFile = false;
bool noverbose = false;
string configFile = "simconfig.xml";
for (int i = 0; i < args.Length; i++)
{
@@ -60,9 +61,21 @@ namespace OpenSim
{
noverbose = true;
}
if (args[i] == "-config")
{
try
{
i++;
configFile = args[i];
}
catch (Exception e)
{
Console.WriteLine("-config: Please specify a config file.");
}
}
}
OpenSimMain sim = new OpenSimMain( sandBoxMode, startLoginServer, physicsEngine, useConfigFile, noverbose);
OpenSimMain sim = new OpenSimMain(sandBoxMode, startLoginServer, physicsEngine, useConfigFile, noverbose, configFile);
// OpenSimRoot.Instance.Application = sim;
sim.m_sandbox = sandBoxMode;
sim.user_accounts = userAccounts;