diff options
author | Max Horn | 2008-10-06 12:48:52 +0000 |
---|---|---|
committer | Max Horn | 2008-10-06 12:48:52 +0000 |
commit | 6a2f3dc0b984bcd8bd84d98ae456ed57fca740d6 (patch) | |
tree | 6c900838c9aacdaa301ce1bab2e75826f9ec67bc /engines/game.h | |
parent | 6ca906d7aa4e515d0b0ce9c6a5a38500721d2483 (diff) | |
download | scummvm-rg350-6a2f3dc0b984bcd8bd84d98ae456ed57fca740d6.tar.gz scummvm-rg350-6a2f3dc0b984bcd8bd84d98ae456ed57fca740d6.tar.bz2 scummvm-rg350-6a2f3dc0b984bcd8bd84d98ae456ed57fca740d6.zip |
Added new type Engine::Feature; pushed down some #include dependencies
svn-id: r34755
Diffstat (limited to 'engines/game.h')
-rw-r--r-- | engines/game.h | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/engines/game.h b/engines/game.h index a1eed7acd9..a07a71b7e6 100644 --- a/engines/game.h +++ b/engines/game.h @@ -62,25 +62,12 @@ const PlainGameDescriptor *findPlainGameDescriptor(const char *gameid, const Pla */ class GameDescriptor : public Common::StringMap { public: - GameDescriptor() { - setVal("gameid", ""); - setVal("description", ""); - } - - GameDescriptor(const PlainGameDescriptor &pgd) { - setVal("gameid", pgd.gameid); - setVal("description", pgd.description); - } - - GameDescriptor(const Common::String &g, const Common::String &d, Common::Language l = Common::UNK_LANG, - Common::Platform p = Common::kPlatformUnknown) { - setVal("gameid", g); - setVal("description", d); - if (l != Common::UNK_LANG) - setVal("language", Common::getLanguageCode(l)); - if (p != Common::kPlatformUnknown) - setVal("platform", Common::getPlatformCode(p)); - } + GameDescriptor(); + GameDescriptor(const PlainGameDescriptor &pgd); + GameDescriptor(const Common::String &gameid, + const Common::String &description, + Common::Language language = Common::UNK_LANG, + Common::Platform platform = Common::kPlatformUnknown); /** * Update the description string by appending (LANG/PLATFORM/EXTRA) to it. |