Update MainForm.cs

This commit is contained in:
TheGreatRambler 2019-11-13 20:05:46 -05:00 committed by GitHub
parent 05045f9702
commit 3b3cd3d2fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -448,6 +448,15 @@ namespace BizHawk.Client.EmuHawk
_needsFullscreenOnLoad = false;
ToggleFullscreen();
}
// Simply exit the program if the version is asked for
if (_argParser.printVersion)
{
// Print the version
Console.WriteLine(VersionInfo.GetEmuVersion());
// Return and leave
return _exitCode;
}
// incantation required to get the program reliably on top of the console window
// we might want it in ToggleFullscreen later, but here, it needs to happen regardless