Added -worldpath, changes the path Terraria looks for worlds.

This commit is contained in:
Deathmax 2011-07-04 21:29:58 +08:00
parent 949256dd1a
commit b0f5466495

View file

@ -181,6 +181,15 @@ namespace TShockAPI
Log.ConsoleInfo("Config path has been set to " + path);
}
}
if (parms[i].ToLower() == "-worldpath")
{
var path = parms[++i];
if (path.IndexOfAny(Path.GetInvalidPathChars()) == -1)
{
Main.WorldPath = path;
Log.ConsoleInfo("World path has been set to " + path);
}
}
}
}