Merge overloads of CloseEmulator to param w/ default

This commit is contained in:
YoshiRulz 2020-06-17 01:54:31 +10:00
parent cb08d00372
commit 51a83193a1
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 2 additions and 7 deletions

View File

@ -671,15 +671,10 @@ namespace BizHawk.Client.EmuHawk
} }
} }
public void CloseEmulator() public void CloseEmulator(int? exitCode = null)
{ {
_exitRequestPending = true; _exitRequestPending = true;
} if (exitCode != null) _exitCode = exitCode.Value;
public void CloseEmulator(int exitCode)
{
_exitRequestPending = true;
_exitCode = exitCode;
} }
private void EmulationMenuItem_DropDownOpened(object sender, EventArgs e) private void EmulationMenuItem_DropDownOpened(object sender, EventArgs e)