aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/dialogue.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2007-10-27 21:29:38 +0000
committerNicola Mettifogo2007-10-27 21:29:38 +0000
commit9d14d74e8d763806afc7019ab5cdda4eab113a44 (patch)
tree30e9831cf13e049821fe51a12b19a1489c253d4a /engines/parallaction/dialogue.cpp
parent9998620379bbf681afd85ae9732594d6cee4daa0 (diff)
downloadscummvm-rg350-9d14d74e8d763806afc7019ab5cdda4eab113a44.tar.gz
scummvm-rg350-9d14d74e8d763806afc7019ab5cdda4eab113a44.tar.bz2
scummvm-rg350-9d14d74e8d763806afc7019ab5cdda4eab113a44.zip
Temporarily force quits when user presses exit key combination. A TODO comment has been added to places where behavior should be changed to allow the engine to exit gracefully.
svn-id: r29270
Diffstat (limited to 'engines/parallaction/dialogue.cpp')
-rw-r--r--engines/parallaction/dialogue.cpp6
1 files changed, 5 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;