mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-01 06:58:34 +00:00
WINTERMUTE: Respect EVENT_QUIT properly (and don't ask to quit anymore)
This commit is contained in:
parent
b43bac6192
commit
28b8537530
@ -125,9 +125,12 @@ void BasePlatform::handleEvent(Common::Event *event) {
|
||||
// _gameRef->AutoSaveOnExit();
|
||||
// _gameRef->_quitting = true;
|
||||
// }
|
||||
if (_gameRef) {
|
||||
_gameRef->onWindowClose();
|
||||
}
|
||||
|
||||
// The engine CAN query for closing, but we disable it for now, as the EVENT_QUIT-event
|
||||
// can't be stopped.
|
||||
// if (_gameRef) {
|
||||
// _gameRef->onWindowClose();
|
||||
// }
|
||||
break;
|
||||
default:
|
||||
// TODO: Do we care about any other events?
|
||||
|
@ -250,6 +250,9 @@ int WintermuteEngine::messageLoop() {
|
||||
}
|
||||
prevTime = time;
|
||||
}
|
||||
if (shouldQuit()) {
|
||||
break;
|
||||
}
|
||||
if (_game && _game->_quitting) {
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user