From c2ba2cc586c3373a5a2563b58fe3aec58993c4f1 Mon Sep 17 00:00:00 2001 From: Nicolas Bacca Date: Sun, 1 Dec 2002 23:46:19 +0000 Subject: Fix Simon countermeasures :) svn-id: r5804 --- backends/wince/pocketpc.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'backends/wince') diff --git a/backends/wince/pocketpc.cpp b/backends/wince/pocketpc.cpp index 56c3c74cc6..a01f7f0f72 100644 --- a/backends/wince/pocketpc.cpp +++ b/backends/wince/pocketpc.cpp @@ -912,17 +912,17 @@ void runGame(char *game_name) { /* Start the engine */ - engine = Engine::createFromDetector(&detector, system); - - keypad_init(); - load_key_mapping(); + is_simon = (detector._gameId >= GID_SIMON_FIRST); if (detector._gameId == GID_SAMNMAX || detector._gameId == GID_FT || detector._gameId == GID_DIG) hide_cursor = FALSE; else - hide_cursor = TRUE; + hide_cursor = TRUE; - is_simon = (detector._gameId >= GID_SIMON_FIRST); + engine = Engine::createFromDetector(&detector, system); + + keypad_init(); + load_key_mapping(); engine->go(); @@ -1461,6 +1461,11 @@ void action_skip() { OSystem_WINCE3* system; system = (OSystem_WINCE3*)g_scumm->_system; + if (is_simon) { + ((SimonState*)engine)->_exit_cutscene = true; + return; + } + if (g_scumm->vm.cutScenePtr[g_scumm->vm.cutSceneStackPointer] || g_scumm->_insaneState) system->addEventKeyPressed(g_scumm->_vars[g_scumm->VAR_CUTSCENEEXIT_KEY]); else -- cgit v1.2.3