aboutsummaryrefslogtreecommitdiff
path: root/backends/wince/CELauncherDialog.cpp
diff options
context:
space:
mode:
authorKostas Nakos2006-06-06 19:31:49 +0000
committerKostas Nakos2006-06-06 19:31:49 +0000
commit506456d0146fd83c16e117ad2d543bdb828223dd (patch)
tree516bd8ef65299c6c6f24f133a3dad2398d2b4a2f /backends/wince/CELauncherDialog.cpp
parent318770280c22788f866b0228b1e6a68f7d1913db (diff)
downloadscummvm-rg350-506456d0146fd83c16e117ad2d543bdb828223dd.tar.gz
scummvm-rg350-506456d0146fd83c16e117ad2d543bdb828223dd.tar.bz2
scummvm-rg350-506456d0146fd83c16e117ad2d543bdb828223dd.zip
update the CE port to work under 0.9.0 codebase
svn-id: r22956
Diffstat (limited to 'backends/wince/CELauncherDialog.cpp')
-rw-r--r--backends/wince/CELauncherDialog.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/backends/wince/CELauncherDialog.cpp b/backends/wince/CELauncherDialog.cpp
index 99bb82e47e..3a5dfb6459 100644
--- a/backends/wince/CELauncherDialog.cpp
+++ b/backends/wince/CELauncherDialog.cpp
@@ -99,7 +99,7 @@ void CELauncherDialog::addCandidate(String &path, DetectedGameList &candidates)
strcpy(candidateName, &path[i + 1]);
candidateName[strlen(candidateName) - 1] = '\0';
for (i=0; i<candidates.size(); i++) {
- if (scumm_stricmp(candidateName, candidates[i].description) == 0) {
+ if (scumm_stricmp(candidateName, candidates[i].description.c_str()) == 0) {
idx = i;
break;
}
@@ -119,7 +119,7 @@ void CELauncherDialog::addCandidate(String &path, DetectedGameList &candidates)
// The auto detector or the user made a choice.
// Pick a domain name which does not yet exist (after all, we
// are *adding* a game to the config, not replacing).
- String domain(result.description);
+ String domain(result.gameid);
if (ConfMan.hasGameDomain(domain)) {
char suffix = 'a';
domain += suffix;
@@ -131,7 +131,9 @@ void CELauncherDialog::addCandidate(String &path, DetectedGameList &candidates)
}
ConfMan.set("gameid", result.description, domain);
ConfMan.set("description", result.description, domain);
- }
+ } else
+ ConfMan.addGameDomain(domain);
+
ConfMan.set("path", path, domain);
// Set language if specified