mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
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)
This commit is contained in:
@@ -19,6 +19,7 @@ namespace OpenSim
|
||||
string physicsEngine = "basicphysics";
|
||||
bool allowFlying = false;
|
||||
bool userAccounts = false;
|
||||
bool gridLocalAsset = false;
|
||||
|
||||
for (int i = 0; i < args.Length; i++)
|
||||
{
|
||||
@@ -45,12 +46,17 @@ namespace OpenSim
|
||||
physicsEngine = "OpenDynamicsEngine";
|
||||
allowFlying = true;
|
||||
}
|
||||
if (args[i] == "-localasset")
|
||||
{
|
||||
gridLocalAsset = true;
|
||||
}
|
||||
}
|
||||
|
||||
OpenSimMain sim = new OpenSimMain( sandBoxMode, startLoginServer, physicsEngine );
|
||||
// OpenSimRoot.Instance.Application = sim;
|
||||
sim.m_sandbox = sandBoxMode;
|
||||
sim.user_accounts = userAccounts;
|
||||
sim.gridLocalAsset = gridLocalAsset;
|
||||
OpenSim.world.Avatar.PhysicsEngineFlying = allowFlying;
|
||||
|
||||
sim.StartUp();
|
||||
|
||||
Reference in New Issue
Block a user