aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Application.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Application.cs')
-rw-r--r--OpenSim/Application.cs15
1 files changed, 14 insertions, 1 deletions
diff --git a/OpenSim/Application.cs b/OpenSim/Application.cs
index 6adc540..7d8be59 100644
--- a/OpenSim/Application.cs
+++ b/OpenSim/Application.cs
@@ -22,6 +22,7 @@ namespace OpenSim
22 bool gridLocalAsset = false; 22 bool gridLocalAsset = false;
23 bool useConfigFile = false; 23 bool useConfigFile = false;
24 bool noverbose = false; 24 bool noverbose = false;
25 string configFile = "simconfig.xml";
25 26
26 for (int i = 0; i < args.Length; i++) 27 for (int i = 0; i < args.Length; i++)
27 { 28 {
@@ -60,9 +61,21 @@ namespace OpenSim
60 { 61 {
61 noverbose = true; 62 noverbose = true;
62 } 63 }
64 if (args[i] == "-config")
65 {
66 try
67 {
68 i++;
69 configFile = args[i];
70 }
71 catch (Exception e)
72 {
73 Console.WriteLine("-config: Please specify a config file.");
74 }
75 }
63 } 76 }
64 77
65 OpenSimMain sim = new OpenSimMain( sandBoxMode, startLoginServer, physicsEngine, useConfigFile, noverbose); 78 OpenSimMain sim = new OpenSimMain(sandBoxMode, startLoginServer, physicsEngine, useConfigFile, noverbose, configFile);
66 // OpenSimRoot.Instance.Application = sim; 79 // OpenSimRoot.Instance.Application = sim;
67 sim.m_sandbox = sandBoxMode; 80 sim.m_sandbox = sandBoxMode;
68 sim.user_accounts = userAccounts; 81 sim.user_accounts = userAccounts;