From faadabe20cbbe4312d73d85205fcba77488e4e83 Mon Sep 17 00:00:00 2001 From: Kostas Nakos Date: Sun, 15 Feb 2009 20:22:07 +0000 Subject: add support for groovie svn-id: r38288 --- backends/platform/wince/CEActionsPocket.cpp | 9 +++++---- backends/platform/wince/CEActionsSmartphone.cpp | 7 ++++--- 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'backends/platform') diff --git a/backends/platform/wince/CEActionsPocket.cpp b/backends/platform/wince/CEActionsPocket.cpp index 4df93962aa..8adf9874e5 100644 --- a/backends/platform/wince/CEActionsPocket.cpp +++ b/backends/platform/wince/CEActionsPocket.cpp @@ -130,7 +130,8 @@ void CEActionsPocket::initInstanceGame() { bool is_lure = (gameid == "lure"); bool is_feeble = (gameid == "feeble"); bool is_drascula = (strncmp(gameid.c_str(), "drascula",8) == 0); - bool is_tucker = (strncmp(gameid.c_str(), "tucker",6) == 0); + bool is_tucker = (gameid == "tucker"); + bool is_groovie = (gameid == "groovie"); GUI_Actions::initInstanceGame(); @@ -140,7 +141,7 @@ void CEActionsPocket::initInstanceGame() { _right_click_needed = true; // See if a "hide toolbar" mapping could be needed - if (is_sword1 || is_sword2 || is_comi) + if (is_sword1 || is_sword2 || is_comi || is_groovie) _hide_toolbar_needed = true; // Initialize keys for different actions @@ -148,7 +149,7 @@ void CEActionsPocket::initInstanceGame() { _key_action[POCKET_ACTION_PAUSE].setKey(VK_SPACE); _action_enabled[POCKET_ACTION_PAUSE] = true; // Save - if (is_simon || is_sword2 || is_gob || is_kyra || is_feeble || is_tucker) + if (is_simon || is_sword2 || is_gob || is_kyra || is_feeble || is_tucker || is_groovie) _action_enabled[POCKET_ACTION_SAVE] = false; else if (is_queen) { _action_enabled[POCKET_ACTION_SAVE] = true; @@ -172,7 +173,7 @@ void CEActionsPocket::initInstanceGame() { // Quit _action_enabled[POCKET_ACTION_QUIT] = true; // Skip - if (!is_cine && !is_parallaction) + if (!is_cine && !is_parallaction && !is_groovie) _action_enabled[POCKET_ACTION_SKIP] = true; if (is_simon || is_sky || is_sword2 || is_queen || is_sword1 || is_gob || is_saga || is_kyra || is_touche || is_lure || is_feeble || is_drascula || is_tucker) diff --git a/backends/platform/wince/CEActionsSmartphone.cpp b/backends/platform/wince/CEActionsSmartphone.cpp index 16438538ef..663ad18433 100644 --- a/backends/platform/wince/CEActionsSmartphone.cpp +++ b/backends/platform/wince/CEActionsSmartphone.cpp @@ -120,7 +120,8 @@ void CEActionsSmartphone::initInstanceGame() { bool is_lure = (gameid == "lure"); bool is_feeble = (gameid == "feeble"); bool is_drascula = (strncmp(gameid.c_str(), "drascula",8) == 0); - bool is_tucker = (strncmp(gameid.c_str(), "tucker",6) == 0); + bool is_tucker = (gameid == "tucker"); + bool is_groovie = (gameid == "groovie"); GUI_Actions::initInstanceGame(); @@ -131,7 +132,7 @@ void CEActionsSmartphone::initInstanceGame() { // Initialize keys for different actions // Save - if (is_simon || is_sword2 || is_gob || is_kyra || is_feeble) + if (is_simon || is_sword2 || is_gob || is_kyra || is_feeble || is_groovie) _action_enabled[SMARTPHONE_ACTION_SAVE] = false; else if (is_queen) { _action_enabled[SMARTPHONE_ACTION_SAVE] = true; @@ -155,7 +156,7 @@ void CEActionsSmartphone::initInstanceGame() { // Skip _action_enabled[SMARTPHONE_ACTION_SKIP] = true; if (is_simon || is_sky || is_sword2 || is_queen || is_sword1 || is_gob || - is_saga || is_kyra || is_touche || is_lure || is_feeble || is_drascula || is_tucker) + is_saga || is_kyra || is_touche || is_lure || is_feeble || is_drascula || is_tucker || is_groovie) _key_action[SMARTPHONE_ACTION_SKIP].setKey(VK_ESCAPE); else _key_action[SMARTPHONE_ACTION_SKIP].setKey(KEY_ALL_SKIP); -- cgit v1.2.3