From 6eab0dcc6ef053ed70eeee3145e891dba7e5749d Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 3 Nov 2008 19:51:34 +0000 Subject: Preliminary support for loading via GMM for KYRA engine. svn-id: r34885 --- engines/kyra/kyra_lok.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engines/kyra/kyra_lok.cpp') 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()) -- cgit v1.2.3