aboutsummaryrefslogtreecommitdiff
path: root/engines/game.h
diff options
context:
space:
mode:
authorEugene Sandulenko2009-06-06 17:57:39 +0000
committerEugene Sandulenko2009-06-06 17:57:39 +0000
commiteb909702af7a1fc48c77b000cc4b4e647ebf4e60 (patch)
tree30fec2c9212ffc4bc07901c0de297476e925c05c /engines/game.h
parent8eb417e15e978729b6724a9e9da38b9d6897e5de (diff)
downloadscummvm-rg350-eb909702af7a1fc48c77b000cc4b4e647ebf4e60.tar.gz
scummvm-rg350-eb909702af7a1fc48c77b000cc4b4e647ebf4e60.tar.bz2
scummvm-rg350-eb909702af7a1fc48c77b000cc4b4e647ebf4e60.zip
Add GUI options support to Sky, Queen and Sword1&2 engines (which do not use AD)
svn-id: r41274
Diffstat (limited to 'engines/game.h')
-rw-r--r--engines/game.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/engines/game.h b/engines/game.h
index 6c73941577..63c988a345 100644
--- a/engines/game.h
+++ b/engines/game.h
@@ -47,6 +47,17 @@ struct PlainGameDescriptor {
};
/**
+ * Same as PlainGameDsscriptor except it adds Game GUI options parameter
+ * This is a plain struct to make it possible to declare NULL-terminated C arrays
+ * consisting of PlainGameDescriptors.
+ */
+struct PlainGameDescriptorGUIOpts {
+ const char *gameid;
+ const char *description;
+ uint32 guioptions;
+};
+
+/**
* Given a list of PlainGameDescriptors, returns the first PlainGameDescriptor
* matching the given gameid. If not match is found return 0.
* The end of the list must marked by a PlainGameDescriptor with gameid equal to 0.
@@ -64,16 +75,20 @@ class GameDescriptor : public Common::StringMap {
public:
GameDescriptor();
GameDescriptor(const PlainGameDescriptor &pgd);
+ GameDescriptor(const PlainGameDescriptorGUIOpts &pgd);
GameDescriptor(const Common::String &gameid,
const Common::String &description,
Common::Language language = Common::UNK_LANG,
- Common::Platform platform = Common::kPlatformUnknown);
+ Common::Platform platform = Common::kPlatformUnknown,
+ uint32 guioptions = 0);
/**
* Update the description string by appending (LANG/PLATFORM/EXTRA) to it.
*/
void updateDesc(const char *extra = 0);
+ void setGUIOptions(uint32 options);
+
Common::String &gameid() { return getVal("gameid"); }
Common::String &description() { return getVal("description"); }
const Common::String &gameid() const { return getVal("gameid"); }