From eb909702af7a1fc48c77b000cc4b4e647ebf4e60 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 6 Jun 2009 17:57:39 +0000 Subject: Add GUI options support to Sky, Queen and Sword1&2 engines (which do not use AD) svn-id: r41274 --- engines/game.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'engines/game.h') diff --git a/engines/game.h b/engines/game.h index 6c73941577..63c988a345 100644 --- a/engines/game.h +++ b/engines/game.h @@ -46,6 +46,17 @@ struct PlainGameDescriptor { const char *description; }; +/** + * 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. @@ -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"); } -- cgit v1.2.3