aboutsummaryrefslogtreecommitdiff
path: root/gui/launcher.cpp
diff options
context:
space:
mode:
authorMax Horn2008-07-29 16:16:15 +0000
committerMax Horn2008-07-29 16:16:15 +0000
commitdf6e8e88896c5af373d4c4efdd38bb226c4f03d5 (patch)
treea9de3d3c02f166c3636db5e18c541da59b7645a0 /gui/launcher.cpp
parentbcac4966154ca51e47a8259204760c36d37f5954 (diff)
downloadscummvm-rg350-df6e8e88896c5af373d4c4efdd38bb226c4f03d5.tar.gz
scummvm-rg350-df6e8e88896c5af373d4c4efdd38bb226c4f03d5.tar.bz2
scummvm-rg350-df6e8e88896c5af373d4c4efdd38bb226c4f03d5.zip
Added convenience accessor method GameDescriptor::preferredtarget
svn-id: r33414
Diffstat (limited to 'gui/launcher.cpp')
-rw-r--r--gui/launcher.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 4475df5720..34c4ebf474 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -714,12 +714,7 @@ Common::String addGameToConf(const GameDescriptor &result) {
// 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;
-
- if (result.contains("preferredtarget"))
- domain = result["preferredtarget"];
- else
- domain = result.gameid();
+ String domain = result.preferredtarget();
assert(!domain.empty());
if (ConfMan.hasGameDomain(domain)) {