aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorNicolas Bacca2004-02-24 21:10:34 +0000
committerNicolas Bacca2004-02-24 21:10:34 +0000
commit03b25aaf828b4646b2410df38b09e7eb5e794e88 (patch)
tree59b74950031fa27f19a137587b4098e4f4517a3d /backends
parentb52ef6463bfe91044682bda5dbe9e3ca88c78b09 (diff)
downloadscummvm-rg350-03b25aaf828b4646b2410df38b09e7eb5e794e88.tar.gz
scummvm-rg350-03b25aaf828b4646b2410df38b09e7eb5e794e88.tar.bz2
scummvm-rg350-03b25aaf828b4646b2410df38b09e7eb5e794e88.zip
Fix Simon detection
svn-id: r13027
Diffstat (limited to 'backends')
-rw-r--r--backends/wince/CEActions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/wince/CEActions.cpp b/backends/wince/CEActions.cpp
index 367671ac5d..7770cd278c 100644
--- a/backends/wince/CEActions.cpp
+++ b/backends/wince/CEActions.cpp
@@ -61,7 +61,7 @@ CEActions::CEActions(OSystem_WINCE3 *mainSystem, GameDetector &detector) :
_hide_toolbar_needed(false)
{
int i;
- bool is_simon = (strcmp(detector._targetName.c_str(), "simon") == 0);
+ bool is_simon = (strncmp(detector._targetName.c_str(), "simon", 5) == 0);
bool is_sword1 = (detector._targetName == "sword1");
bool is_sword2 = (strcmp(detector._targetName.c_str(), "sword2") == 0);
bool is_queen = (detector._targetName == "queen");
@@ -260,4 +260,4 @@ bool CEActions::needsHideToolbarMapping() {
return (_action_mapping[ACTION_HIDE] == 0);
}
-CEActions *CEActions::_instance = NULL; \ No newline at end of file
+CEActions *CEActions::_instance = NULL;