diff options
-rw-r--r-- | engines/parallaction/dialogue.cpp | 6 | ||||
-rw-r--r-- | engines/parallaction/parallaction.cpp | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/engines/parallaction/dialogue.cpp b/engines/parallaction/dialogue.cpp index 906a2c076e..6a5094e06b 100644 --- a/engines/parallaction/dialogue.cpp +++ b/engines/parallaction/dialogue.cpp @@ -124,8 +124,12 @@ uint16 DialogueManager::askPassword() { // FIXME: see comment for updateInput() if (!g_system->getEventManager()->pollEvent(e)) continue; - if (e.type == Common::EVENT_QUIT) + if (e.type == Common::EVENT_QUIT) { + // TODO: don't quit() here, just have caller routines to check + // on kEngineQuit and exit gracefully to allow the engine to shut down + _engineFlags |= kEngineQuit; g_system->quit(); + } if (e.type != Common::EVENT_KEYDOWN) continue; if (!isdigit(e.kbd.ascii)) continue; diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp index abf67efb1c..57d98e2a33 100644 --- a/engines/parallaction/parallaction.cpp +++ b/engines/parallaction/parallaction.cpp @@ -242,6 +242,8 @@ uint16 Parallaction::updateInput() { break; case Common::EVENT_QUIT: + // TODO: don't quit() here, just have caller routines to check + // on kEngineQuit and exit gracefully to allow the engine to shut down _engineFlags |= kEngineQuit; g_system->quit(); break; @@ -273,7 +275,10 @@ void waitUntilLeftClick() { break; if (e.type == Common::EVENT_QUIT) { + // TODO: don't quit() here, just have caller routines to check + // on kEngineQuit and exit gracefully to allow the engine to shut down _engineFlags |= kEngineQuit; + g_system->quit(); break; } |