Fixed --config parameter with wxWidgets GUI. Patch from bit.
This commit is contained in:
parent
03f7302cf8
commit
e61d25eedd
1 changed files with 6 additions and 1 deletions
|
|
@ -19,6 +19,8 @@ extern "C"
|
||||||
int stop_emulation();
|
int stop_emulation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern int config_override;
|
||||||
|
|
||||||
extern void InitXmlResource();
|
extern void InitXmlResource();
|
||||||
|
|
||||||
wxDEFINE_EVENT(WX_CALLBACK_EVENT, CallbackEvent);
|
wxDEFINE_EVENT(WX_CALLBACK_EVENT, CallbackEvent);
|
||||||
|
|
@ -126,7 +128,10 @@ void Frame::OnStopEmulationEvent(wxCommandEvent& event)
|
||||||
if (ret == wxID_OK)
|
if (ret == wxID_OK)
|
||||||
{
|
{
|
||||||
stop_emulation();
|
stop_emulation();
|
||||||
ShowConfigSelection();
|
if (!config_override)
|
||||||
|
ShowConfigSelection();
|
||||||
|
else
|
||||||
|
Quit(1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
resume_emulation();
|
resume_emulation();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue