aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorChristopher Page2008-07-16 04:22:56 +0000
committerChristopher Page2008-07-16 04:22:56 +0000
commit7f480ac571f978802a3ecd5cf6169d0271d1f561 (patch)
treedcd550f0c84bec20aa3cfe5ffc4604a51f174ef6 /base
parent7ecd54a9da6b9a14b4f16c3e53f87475d43bc2da (diff)
downloadscummvm-rg350-7f480ac571f978802a3ecd5cf6169d0271d1f561.tar.gz
scummvm-rg350-7f480ac571f978802a3ecd5cf6169d0271d1f561.tar.bz2
scummvm-rg350-7f480ac571f978802a3ecd5cf6169d0271d1f561.zip
Quit and RTL code is more modular now. EVENT_RTL no longer sets _shouldQuit, shouldQuit is only set if there's an EVENT_QUIT. EVENT_RTL and EVENT_QUIT are completely separate from each other. Engine::quit() method now checks both _shouldQuit and _shouldRTL to determine if the engine should exit. There is no longer a need for resetQuit(), so it's removed
svn-id: r33082
Diffstat (limited to 'base')
-rw-r--r--base/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/base/main.cpp b/base/main.cpp
index f91574ffc4..bb7a17b901 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -317,9 +317,8 @@ extern "C" int scummvm_main(int argc, char *argv[]) {
// (so instead of just quitting, show a nice error dialog to the
// user and let him pick another game).
- // Reset RTL and Quit flags in case we want to load another engine
+ // Reset RTL flag in case we want to load another engine
g_system->getEventManager()->resetRTL();
- g_system->getEventManager()->resetQuit();
if (result == 0)
break;