Merge overloads of CloseEmulator to param w/ default
This commit is contained in:
parent
cb08d00372
commit
51a83193a1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue