aboutsummaryrefslogtreecommitdiff
path: root/engines/game.cpp
diff options
context:
space:
mode:
authorMax Horn2008-10-06 12:48:52 +0000
committerMax Horn2008-10-06 12:48:52 +0000
commit6a2f3dc0b984bcd8bd84d98ae456ed57fca740d6 (patch)
tree6c900838c9aacdaa301ce1bab2e75826f9ec67bc /engines/game.cpp
parent6ca906d7aa4e515d0b0ce9c6a5a38500721d2483 (diff)
downloadscummvm-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.cpp')
-rw-r--r--engines/game.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/engines/game.cpp b/engines/game.cpp
index b3cb140e0a..5011685412 100644
--- a/engines/game.cpp
+++ b/engines/game.cpp
@@ -38,6 +38,25 @@ const PlainGameDescriptor *findPlainGameDescriptor(const char *gameid, const Pla
return 0;
}
+GameDescriptor::GameDescriptor() {
+ setVal("gameid", "");
+ setVal("description", "");
+}
+
+GameDescriptor::GameDescriptor(const PlainGameDescriptor &pgd) {
+ setVal("gameid", pgd.gameid);
+ setVal("description", pgd.description);
+}
+
+GameDescriptor::GameDescriptor(const Common::String &g, const Common::String &d, Common::Language l, Common::Platform p) {
+ 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));
+}
+
void GameDescriptor::updateDesc(const char *extra) {
// TODO: The format used here (LANG/PLATFORM/EXTRA) is not set in stone.
// We may want to change the order (PLATFORM/EXTRA/LANG, anybody?), or