diff options
author | Max Horn | 2008-07-29 16:16:15 +0000 |
---|---|---|
committer | Max Horn | 2008-07-29 16:16:15 +0000 |
commit | df6e8e88896c5af373d4c4efdd38bb226c4f03d5 (patch) | |
tree | a9de3d3c02f166c3636db5e18c541da59b7645a0 /base/game.h | |
parent | bcac4966154ca51e47a8259204760c36d37f5954 (diff) | |
download | scummvm-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 'base/game.h')
-rw-r--r-- | base/game.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/game.h b/base/game.h index b068c300ce..d81f2afb8a 100644 --- a/base/game.h +++ b/base/game.h @@ -92,6 +92,10 @@ public: const Common::String &description() const { return getVal("description"); } Common::Language language() const { return contains("language") ? Common::parseLanguage(getVal("language")) : Common::UNK_LANG; } Common::Platform platform() const { return contains("platform") ? Common::parsePlatform(getVal("platform")) : Common::kPlatformUnknown; } + + const Common::String &preferredtarget() const { + return contains("preferredtarget") ? getVal("preferredtarget") : getVal("gameid"); + } }; /** List of games. */ |