Update ArgParser.cs

This commit is contained in:
TheGreatRambler 2019-11-13 19:59:27 -05:00 committed by GitHub
parent 641c3e9f82
commit 05045f9702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -28,6 +28,7 @@ namespace BizHawk.Client.EmuHawk
public bool startFullscreen = false;
public string luaScript = null;
public bool luaConsole = false;
public bool printVersion = false;
public int socket_port = 0;
public string socket_ip = null;
public string mmf_filename = null;
@ -83,6 +84,10 @@ namespace BizHawk.Client.EmuHawk
// automatically set dump length to maximum frame
_autoDumpLength = _currAviWriterFrameList.OrderBy(x => x).Last();
}
else if (arg.StartsWith("--version"))
{
printVersion = true;
}
else if (arg.StartsWith("--dump-name="))
{
cmdDumpName = args[i].Substring(args[i].IndexOf('=') + 1);
@ -191,4 +196,4 @@ namespace BizHawk.Client.EmuHawk
{
}
}
}
}