diff options
Diffstat (limited to 'backends/wince/CELauncherDialog.cpp')
-rw-r--r-- | backends/wince/CELauncherDialog.cpp | 8 |
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 |