From 3b3cd3d2fdb040e720dbe80593e21338d2d47058 Mon Sep 17 00:00:00 2001 From: TheGreatRambler <31906920+TheGreatRambler@users.noreply.github.com> Date: Wed, 13 Nov 2019 20:05:46 -0500 Subject: [PATCH] Update MainForm.cs --- BizHawk.Client.EmuHawk/MainForm.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/BizHawk.Client.EmuHawk/MainForm.cs b/BizHawk.Client.EmuHawk/MainForm.cs index 68e61a66f9..0d6329802f 100644 --- a/BizHawk.Client.EmuHawk/MainForm.cs +++ b/BizHawk.Client.EmuHawk/MainForm.cs @@ -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