mirror of https://github.com/stella-emu/stella.git
adapt exit popup changes for other platforms
This commit is contained in:
parent
30fc985afd
commit
5f28428ebd
|
@ -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;
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue