fix(breaking): better handling of the server rotation config
The config path was also changed to `BepInEx/config/GBSU/config.json` Tracks the -maplist argument
This commit is contained in:
parent
4771a41fa7
commit
8132f69ed2
8 changed files with 69 additions and 14 deletions
|
|
@ -58,12 +58,15 @@ public class Plugin : BaseUnityPlugin
|
|||
// Parse CLI arguments
|
||||
if (CommandLineParser.Instance.KeyExists("-ip"))
|
||||
{
|
||||
Helper.serverip = CommandLineParser.Instance.GetValueForKey("-ip", true);
|
||||
Helper.serverip = CommandLineParser.Instance.GetValueForKey("-ip", false);
|
||||
}
|
||||
if (CommandLineParser.Instance.KeyExists("-port"))
|
||||
{
|
||||
int.TryParse(CommandLineParser.Instance.GetValueForKey("-port", true), out Helper.serverport);
|
||||
int.TryParse(CommandLineParser.Instance.GetValueForKey("-port", false), out Helper.serverport);
|
||||
}
|
||||
|
||||
// "-maplist" CLI
|
||||
Helper.CheckCustomRotationPath();
|
||||
}
|
||||
|
||||
private static void GBSUCompInit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue