aboutsummaryrefslogtreecommitdiff
path: root/gui/launcher.cpp
diff options
context:
space:
mode:
authorMax Horn2006-01-21 13:01:20 +0000
committerMax Horn2006-01-21 13:01:20 +0000
commit0b39c0ea9fbc43569a17f65db6fe6a89f29ccee1 (patch)
treec1b6170cbc006981a22b36c4b02f10bda699c542 /gui/launcher.cpp
parente34d963027194654259c4ce3499780671f36e133 (diff)
downloadscummvm-rg350-0b39c0ea9fbc43569a17f65db6fe6a89f29ccee1.tar.gz
scummvm-rg350-0b39c0ea9fbc43569a17f65db6fe6a89f29ccee1.tar.bz2
scummvm-rg350-0b39c0ea9fbc43569a17f65db6fe6a89f29ccee1.zip
Fix various incorrect usages of the word 'target' instead of 'gameid'; change the ambigiuous 'GameSettings::name' to 'GameSettings::gameid'
svn-id: r20115
Diffstat (limited to 'gui/launcher.cpp')
-rw-r--r--gui/launcher.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 6d516aa9d9..7d9cc18dea 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -594,18 +594,18 @@ void LauncherDialog::updateListing() {
const ConfigManager::DomainMap &domains = ConfMan.getGameDomains();
ConfigManager::DomainMap::const_iterator iter = domains.begin();
for (iter = domains.begin(); iter != domains.end(); ++iter) {
- String name(iter->_value.get("gameid"));
+ String gameid(iter->_value.get("gameid"));
String description(iter->_value.get("description"));
- if (name.isEmpty())
- name = iter->_key;
+ if (gameid.isEmpty())
+ gameid = iter->_key;
if (description.isEmpty()) {
- GameSettings g = GameDetector::findGame(name);
+ GameSettings g = GameDetector::findGame(gameid);
if (g.description)
description = g.description;
}
- if (!name.isEmpty() && !description.isEmpty()) {
+ if (!gameid.isEmpty() && !description.isEmpty()) {
// Insert the game into the launcher list
int pos = 0, size = l.size();
@@ -669,7 +669,7 @@ void LauncherDialog::addGame() {
// 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.name);
+ String domain(result.gameid);
if (ConfMan.hasGameDomain(domain)) {
char suffix = 'a';
domain += suffix;
@@ -679,7 +679,7 @@ void LauncherDialog::addGame() {
suffix++;
domain += suffix;
}
- ConfMan.set("gameid", result.name, domain);
+ ConfMan.set("gameid", result.gameid, domain);
ConfMan.set("description", result.description, domain);
}
ConfMan.set("path", dir.path(), domain);