From 03b25aaf828b4646b2410df38b09e7eb5e794e88 Mon Sep 17 00:00:00 2001 From: Nicolas Bacca Date: Tue, 24 Feb 2004 21:10:34 +0000 Subject: Fix Simon detection svn-id: r13027 --- backends/wince/CEActions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends/wince/CEActions.cpp') 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; -- cgit v1.2.3