Adding --gettextures command line to TestClient to enable automatic texture downloading. "textures [on/off]" will also globally enable/disable texture downloading

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2287 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2008-10-09 18:04:06 +00:00
parent 96f66d4b13
commit 4d30c30b16
3 changed files with 14 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ namespace OpenMetaverse.TestClient
private static void Usage()
{
Console.WriteLine("Usage: " + Environment.NewLine +
"TestClient.exe --first firstname --last lastname --pass password --contact \"youremail\" [--startpos \"sim/x/y/z\"] [--master \"master name\"] [--masterkey \"master uuid\"] --loginuri=\"uri\"");
"TestClient.exe --first firstname --last lastname --pass password [--loginuri=\"uri\"] [--startpos \"sim/x/y/z\"] [--master \"master name\"] [--masterkey \"master uuid\"] [--gettextures]");
}
static void Main(string[] args)
@@ -29,6 +29,7 @@ namespace OpenMetaverse.TestClient
UUID masterKey = UUID.Zero;
string file = String.Empty;
string loginuri = String.Empty;
bool getTextures = false;
if (arguments["groupcommands"] != null)
groupCommands = true;
@@ -42,6 +43,9 @@ namespace OpenMetaverse.TestClient
if (arguments["loginuri"] != null)
loginuri = arguments["loginuri"];
if (arguments["gettextures"] != null)
getTextures = true;
if (arguments["file"] != null)
{
file = arguments["file"];
@@ -116,9 +120,9 @@ namespace OpenMetaverse.TestClient
// Login the accounts and run the input loop
if (arguments["startpos"] != null)
manager = new ClientManager(accounts, arguments["startpos"]);
manager = new ClientManager(accounts, arguments["startpos"], getTextures);
else
manager = new ClientManager(accounts);
manager = new ClientManager(accounts, getTextures);
manager.Run();
}