adapt exit popup changes for other platforms

This commit is contained in:
thrust26 2020-01-19 21:27:09 +01:00
parent 30fc985afd
commit 5f28428ebd
2 changed files with 6 additions and 0 deletions

View File

@ -737,6 +737,7 @@ void EventHandler::handleEvent(Event::Type event, Int32 value, bool repeated)
{
if (myState == EventHandlerState::EMULATION)
{
#ifdef GUI_SUPPORT
if (myOSystem.settings().getBool("confirmexit"))
{
StringList msg;
@ -749,11 +750,13 @@ void EventHandler::handleEvent(Event::Type event, Int32 value, bool repeated)
enterMenuMode(EventHandlerState::MESSAGEMENU);
}
else
#endif
exitEmulation(true);
}
}
return;
#ifdef GUI_SUPPORT
case EventHandlerState::MESSAGEMENU:
if (pressed && !repeated)
{
@ -762,6 +765,7 @@ void EventHandler::handleEvent(Event::Type event, Int32 value, bool repeated)
exitEmulation(true);
}
return;
#endif
default:
return;

View File

@ -30,6 +30,8 @@ MODULE_OBJS := \
src/gui/LoggerDialog.o \
src/gui/Menu.o \
src/gui/MessageBox.o \
src/gui/MessageDialog.o \
src/gui/MessageMenu.o \
src/gui/MinUICommandDialog.o\
src/gui/OptionsDialog.o \
src/gui/PopUpWidget.o \