diff options
author | Torbjörn Andersson | 2012-03-25 11:58:47 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2012-03-25 11:58:47 +0200 |
commit | 1c124d507930bed5a46fb2d8ca6bfc6f68d6c42f (patch) | |
tree | 72028c2a5a890bf2658f3d568ee5fca1d54b979c /engines | |
parent | ae102a2b548fe831db4f31772656740d1a3042f7 (diff) | |
download | scummvm-rg350-1c124d507930bed5a46fb2d8ca6bfc6f68d6c42f.tar.gz scummvm-rg350-1c124d507930bed5a46fb2d8ca6bfc6f68d6c42f.tar.bz2 scummvm-rg350-1c124d507930bed5a46fb2d8ca6bfc6f68d6c42f.zip |
SKY: Add gui-option for alt-intro
Ideally, this should only be added for the CD version but I don't
think we have any mechanism for telling the CD and floppy versions
apart.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sky/detection.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/sky/detection.cpp b/engines/sky/detection.cpp index 2b702e99ea..aaac1fce79 100644 --- a/engines/sky/detection.cpp +++ b/engines/sky/detection.cpp @@ -27,17 +27,26 @@ #include "common/config-manager.h" #include "engines/advancedDetector.h" +#include "engines/metaengine.h" #include "common/system.h" #include "common/file.h" #include "common/fs.h" #include "common/savefile.h" #include "common/textconsole.h" +#include "common/translation.h" #include "engines/metaengine.h" static const PlainGameDescriptor skySetting = {"sky", "Beneath a Steel Sky" }; +static const ExtraGuiOption skyExtraGuiOption = { + _s("Floppy intro"), + _s("Use the floppy verion's intro (CD version only)"), + "alt_intro", + false +}; + struct SkyVersion { int dinnerTableEntries; int dataDiskSize; @@ -68,6 +77,7 @@ public: virtual bool hasFeature(MetaEngineFeature f) const; virtual GameList getSupportedGames() const; + virtual const ExtraGuiOptions getExtraGuiOptions(const Common::String &target) const; virtual GameDescriptor findGame(const char *gameid) const; virtual GameList detectGames(const Common::FSList &fslist) const; @@ -106,6 +116,12 @@ GameList SkyMetaEngine::getSupportedGames() const { return games; } +const ExtraGuiOptions SkyMetaEngine::getExtraGuiOptions(const Common::String &target) const { + ExtraGuiOptions options; + options.push_back(skyExtraGuiOption); + return options; +} + GameDescriptor SkyMetaEngine::findGame(const char *gameid) const { if (0 == scumm_stricmp(gameid, skySetting.gameid)) return skySetting; |