From e61d25eeddc37557f9c07b392e494ce414bb633e Mon Sep 17 00:00:00 2001 From: pcem_emulator Date: Sun, 18 Jun 2017 20:51:07 +0100 Subject: [PATCH] Fixed --config parameter with wxWidgets GUI. Patch from bit. --- src/wx-app.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/wx-app.cc b/src/wx-app.cc index 003ab39..b8c1179 100644 --- a/src/wx-app.cc +++ b/src/wx-app.cc @@ -19,6 +19,8 @@ extern "C" int stop_emulation(); } +extern int config_override; + extern void InitXmlResource(); wxDEFINE_EVENT(WX_CALLBACK_EVENT, CallbackEvent); @@ -126,7 +128,10 @@ void Frame::OnStopEmulationEvent(wxCommandEvent& event) if (ret == wxID_OK) { stop_emulation(); - ShowConfigSelection(); + if (!config_override) + ShowConfigSelection(); + else + Quit(1); } else resume_emulation();