diff options
author | Johannes Schickel | 2008-11-03 19:51:34 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-11-03 19:51:34 +0000 |
commit | 6eab0dcc6ef053ed70eeee3145e891dba7e5749d (patch) | |
tree | 70ff6041dfa897a249539d88a28d676e2996a95a /engines/kyra/kyra_lok.cpp | |
parent | f3f3c69f6306a5f783826045fab0efe288f49058 (diff) | |
download | scummvm-rg350-6eab0dcc6ef053ed70eeee3145e891dba7e5749d.tar.gz scummvm-rg350-6eab0dcc6ef053ed70eeee3145e891dba7e5749d.tar.bz2 scummvm-rg350-6eab0dcc6ef053ed70eeee3145e891dba7e5749d.zip |
Preliminary support for loading via GMM for KYRA engine.
svn-id: r34885
Diffstat (limited to 'engines/kyra/kyra_lok.cpp')
-rw-r--r-- | engines/kyra/kyra_lok.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/kyra/kyra_lok.cpp b/engines/kyra/kyra_lok.cpp index 5a3376a3e6..e8db3467fc 100644 --- a/engines/kyra/kyra_lok.cpp +++ b/engines/kyra/kyra_lok.cpp @@ -463,7 +463,12 @@ void KyraEngine_LoK::delay(uint32 amount, bool update, bool isMainLoop) { uint32 start = _system->getMillis(); do { + if (isMainLoop) + _isSaveAllowed = true; + while (_eventMan->pollEvent(event)) { + _isSaveAllowed = false; + switch (event.type) { case Common::EVENT_KEYDOWN: if (event.kbd.keycode >= '1' && event.kbd.keycode <= '9' && @@ -513,6 +518,9 @@ void KyraEngine_LoK::delay(uint32 amount, bool update, bool isMainLoop) { default: break; } + + if (isMainLoop) + _isSaveAllowed = true; } if (_debugger->isAttached()) |