QUEEN: Add GUI option for alt-intro

Ideally, this should only be added to the CD version but I don't think
we provide any mechanism for telling the CD and floppy versions apart.
This commit is contained in:
Torbjörn Andersson 2012-03-25 11:58:09 +02:00
parent ec32ccb6d6
commit ae102a2b54

View File

@ -30,6 +30,7 @@
#include "common/system.h"
#include "common/events.h"
#include "common/textconsole.h"
#include "common/translation.h"
#include "engines/util.h"
@ -54,6 +55,13 @@ static const PlainGameDescriptor queenGameDescriptor = {
"queen", "Flight of the Amazon Queen"
};
static const ExtraGuiOption queenExtraGuiOption = {
_s("Alternative intro"),
_s("Use an alternative game intro (CD version only)"),
"alt_intro",
false
};
class QueenMetaEngine : public MetaEngine {
public:
virtual const char *getName() const;
@ -61,6 +69,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;
virtual SaveStateList listSaves(const char *target) const;
@ -96,6 +105,12 @@ GameList QueenMetaEngine::getSupportedGames() const {
return games;
}
const ExtraGuiOptions QueenMetaEngine::getExtraGuiOptions(const Common::String &target) const {
ExtraGuiOptions options;
options.push_back(queenExtraGuiOption);
return options;
}
GameDescriptor QueenMetaEngine::findGame(const char *gameid) const {
if (0 == scumm_stricmp(gameid, queenGameDescriptor.gameid)) {
return queenGameDescriptor;