diff options
author | Bastien Bouclet | 2017-12-24 11:01:38 +0100 |
---|---|---|
committer | Bastien Bouclet | 2018-05-10 09:04:23 +0200 |
commit | 1de5aca585af3e04a64a4f287dd348c0e7b4b967 (patch) | |
tree | 693f7ebcb7f6718dc0e09ec86922ff025be87359 /engines/game.h | |
parent | 5aff87dc153f392cb14423efa78a96397789a6fd (diff) | |
download | scummvm-rg350-1de5aca585af3e04a64a4f287dd348c0e7b4b967.tar.gz scummvm-rg350-1de5aca585af3e04a64a4f287dd348c0e7b4b967.tar.bz2 scummvm-rg350-1de5aca585af3e04a64a4f287dd348c0e7b4b967.zip |
ENGINES: Set the GameDescriptor decription in the constructor
Diffstat (limited to 'engines/game.h')
-rw-r--r-- | engines/game.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/engines/game.h b/engines/game.h index 053c0c85b1..d675e7bdf4 100644 --- a/engines/game.h +++ b/engines/game.h @@ -81,20 +81,12 @@ enum GameSupportLevel { class GameDescriptor { public: GameDescriptor(); - explicit GameDescriptor(const PlainGameDescriptor &pgd, const Common::String &guioptions = Common::String()); + explicit GameDescriptor(const PlainGameDescriptor &pgd); GameDescriptor(const Common::String &id, const Common::String &description, Common::Language language = Common::UNK_LANG, - Common::Platform platform = Common::kPlatformUnknown, - const Common::String &guioptions = Common::String(), - GameSupportLevel gsl = kStableGame); - - /** - * Update the description string by appending (EXTRA/PLATFORM/LANG) to it. - * Values that are missing are omitted, so e.g. (EXTRA/LANG) would be - * added if no platform has been specified but a language and an extra string. - */ - void updateDesc(const char *extraDesc = 0); + Common::Platform platform = Common::kPlatformUnknown, + const Common::String &extra = Common::String()); void setGUIOptions(const Common::String &options); void appendGUIOptions(const Common::String &str); @@ -114,6 +106,13 @@ public: GameSupportLevel gameSupportLevel; private: + /** + * Update the description string by appending (EXTRA/PLATFORM/LANG) to it. + * Values that are missing are omitted, so e.g. (EXTRA/LANG) would be + * added if no platform has been specified but a language and an extra string. + */ + Common::String updateDesc() const; + Common::String _guiOptions; }; |