aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMW2007-04-17 13:39:21 +0000
committerMW2007-04-17 13:39:21 +0000
commit631d30b80dbffd786df64155510d01b0c0cb6da2 (patch)
tree3f18c6136d37e3cb6f63c36eb642686c079a9ee9 /OpenSim
parentHopefully undid the murder I committed in the last commit (diff)
downloadopensim-SC_OLD-631d30b80dbffd786df64155510d01b0c0cb6da2.zip
opensim-SC_OLD-631d30b80dbffd786df64155510d01b0c0cb6da2.tar.gz
opensim-SC_OLD-631d30b80dbffd786df64155510d01b0c0cb6da2.tar.bz2
opensim-SC_OLD-631d30b80dbffd786df64155510d01b0c0cb6da2.tar.xz
Yet another command line option (really need to get all these moved into a config file), this one: "-localasset" (without the quotes) is a temporary hack to use a local asset server when in grid mode. (use with extreme caution if you have more than one sim in a grid)
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Application.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Application.cs b/OpenSim/Application.cs
index 34dbf8e..0e3d5a6 100644
--- a/OpenSim/Application.cs
+++ b/OpenSim/Application.cs
@@ -19,6 +19,7 @@ namespace OpenSim
19 string physicsEngine = "basicphysics"; 19 string physicsEngine = "basicphysics";
20 bool allowFlying = false; 20 bool allowFlying = false;
21 bool userAccounts = false; 21 bool userAccounts = false;
22 bool gridLocalAsset = false;
22 23
23 for (int i = 0; i < args.Length; i++) 24 for (int i = 0; i < args.Length; i++)
24 { 25 {
@@ -45,12 +46,17 @@ namespace OpenSim
45 physicsEngine = "OpenDynamicsEngine"; 46 physicsEngine = "OpenDynamicsEngine";
46 allowFlying = true; 47 allowFlying = true;
47 } 48 }
49 if (args[i] == "-localasset")
50 {
51 gridLocalAsset = true;
52 }
48 } 53 }
49 54
50 OpenSimMain sim = new OpenSimMain( sandBoxMode, startLoginServer, physicsEngine ); 55 OpenSimMain sim = new OpenSimMain( sandBoxMode, startLoginServer, physicsEngine );
51 // OpenSimRoot.Instance.Application = sim; 56 // OpenSimRoot.Instance.Application = sim;
52 sim.m_sandbox = sandBoxMode; 57 sim.m_sandbox = sandBoxMode;
53 sim.user_accounts = userAccounts; 58 sim.user_accounts = userAccounts;
59 sim.gridLocalAsset = gridLocalAsset;
54 OpenSim.world.Avatar.PhysicsEngineFlying = allowFlying; 60 OpenSim.world.Avatar.PhysicsEngineFlying = allowFlying;
55 61
56 sim.StartUp(); 62 sim.StartUp();