From 51a83193a10135d48a66b0894026162c4644fccd Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Wed, 17 Jun 2020 01:54:31 +1000 Subject: [PATCH] Merge overloads of CloseEmulator to param w/ default --- src/BizHawk.Client.EmuHawk/MainForm.Events.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/BizHawk.Client.EmuHawk/MainForm.Events.cs b/src/BizHawk.Client.EmuHawk/MainForm.Events.cs index ce6b610921..5066095d53 100644 --- a/src/BizHawk.Client.EmuHawk/MainForm.Events.cs +++ b/src/BizHawk.Client.EmuHawk/MainForm.Events.cs @@ -671,15 +671,10 @@ namespace BizHawk.Client.EmuHawk } } - public void CloseEmulator() + public void CloseEmulator(int? exitCode = null) { _exitRequestPending = true; - } - - public void CloseEmulator(int exitCode) - { - _exitRequestPending = true; - _exitCode = exitCode; + if (exitCode != null) _exitCode = exitCode.Value; } private void EmulationMenuItem_DropDownOpened(object sender, EventArgs e)