aboutsummaryrefslogtreecommitdiff
path: root/backends/wince/CEActionsSmartphone.cpp
diff options
context:
space:
mode:
authorMax Horn2006-04-02 20:44:07 +0000
committerMax Horn2006-04-02 20:44:07 +0000
commit4a54db07a68e52a993f6345cf6b22109d556fe39 (patch)
treec231ad9d7c7bfe1f8879880974afe6e2e3ac477c /backends/wince/CEActionsSmartphone.cpp
parent92ad99a88c7070005057fa0e1af5915b5746d33c (diff)
downloadscummvm-rg350-4a54db07a68e52a993f6345cf6b22109d556fe39.tar.gz
scummvm-rg350-4a54db07a68e52a993f6345cf6b22109d556fe39.tar.bz2
scummvm-rg350-4a54db07a68e52a993f6345cf6b22109d556fe39.zip
To detect specific games, you want to look at the gameid, not the targetname (which can take on arbitrary values)
svn-id: r21567
Diffstat (limited to 'backends/wince/CEActionsSmartphone.cpp')
-rw-r--r--backends/wince/CEActionsSmartphone.cpp14
1 files changed, 7 insertions, 7 deletions
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