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;
|
_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)
|
||||||
|
|
Loading…
Reference in New Issue