aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/parallaction.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/parallaction.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/parallaction.cpp')
-rw-r--r--engines/parallaction/parallaction.cpp5
1 files changed, 5 insertions, 0 deletions
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;
}