Added -worldpath, changes the path Terraria looks for worlds.
This commit is contained in:
parent
949256dd1a
commit
b0f5466495
1 changed files with 9 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue