From 4a54db07a68e52a993f6345cf6b22109d556fe39 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 2 Apr 2006 20:44:07 +0000 Subject: To detect specific games, you want to look at the gameid, not the targetname (which can take on arbitrary values) svn-id: r21567 --- backends/wince/CEActionsSmartphone.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'backends/wince/CEActionsSmartphone.cpp') diff --git a/backends/wince/CEActionsSmartphone.cpp b/backends/wince/CEActionsSmartphone.cpp index cfa73bab7e..d573b463ef 100644 --- a/backends/wince/CEActionsSmartphone.cpp +++ b/backends/wince/CEActionsSmartphone.cpp @@ -112,17 +112,17 @@ void CEActionsSmartphone::initInstanceMain(OSystem *mainSystem) { } void CEActionsSmartphone::initInstanceGame() { - bool is_simon = (strncmp(_detector->_targetName.c_str(), "simon", 5) == 0); - bool is_sky = (_detector->_targetName == "sky"); - bool is_queen = (_detector->_targetName == "queen"); - bool is_gob = (strncmp(_detector->_targetName.c_str(), "gob", 3) == 0); - bool is_ite = ((strncmp(_detector->_targetName.c_str(), "ite", 3) == 0) || - (strncmp(_detector->_targetName.c_str(), "ihnm", 4) == 0)); + bool is_simon = (strncmp(_detector->_gameid.c_str(), "simon", 5) == 0); + bool is_sky = (_detector->_gameid == "sky"); + bool is_queen = (_detector->_gameid == "queen"); + bool is_gob = (strncmp(_detector->_gameid.c_str(), "gob", 3) == 0); + bool is_ite = ((strncmp(_detector->_gameid.c_str(), "ite", 3) == 0) || + (strncmp(_detector->_gameid.c_str(), "ihnm", 4) == 0)); GUI_Actions::initInstanceGame(); // See if a right click mapping could be needed - if (is_sky || _detector->_targetName == "samnmax" || is_gob) + if (is_sky || _detector->_gameid == "samnmax" || is_gob) _right_click_needed = true; // Initialize keys for different actions -- cgit v1.2.3