diff options
author | Johannes Schickel | 2015-12-28 00:04:13 +0100 |
---|---|---|
committer | Johannes Schickel | 2015-12-28 00:14:11 +0100 |
commit | 8c1fc40d3d358ee7e315aa5de067d0c435105273 (patch) | |
tree | 1b49b2070278680f8ded596790785f846f589c83 /engines/cine | |
parent | 796ea1468f7871892acc84a5aff69fc99a64cca4 (diff) | |
download | scummvm-rg350-8c1fc40d3d358ee7e315aa5de067d0c435105273.tar.gz scummvm-rg350-8c1fc40d3d358ee7e315aa5de067d0c435105273.tar.bz2 scummvm-rg350-8c1fc40d3d358ee7e315aa5de067d0c435105273.zip |
CINE: Implement extra GUI options using AD's features.
Diffstat (limited to 'engines/cine')
-rw-r--r-- | engines/cine/detection.cpp | 27 | ||||
-rw-r--r-- | engines/cine/detection_tables.h | 2 |
2 files changed, 16 insertions, 13 deletions
diff --git a/engines/cine/detection.cpp b/engines/cine/detection.cpp index 027ed91fe0..40e79f96ac 100644 --- a/engines/cine/detection.cpp +++ b/engines/cine/detection.cpp @@ -63,18 +63,25 @@ static const Engines::ObsoleteGameID obsoleteGameIDsTable[] = { #include "cine/detection_tables.h" -static const ExtraGuiOption cineExtraGuiOption = { - _s("Use original save/load screens"), - _s("Use the original save/load screens, instead of the ScummVM ones"), - "originalsaveload", - false +static const ADExtraGuiOptionsMap optionsList[] = { + { + GAMEOPTION_ORIGINAL_SAVELOAD, + { + _s("Use original save/load screens"), + _s("Use the original save/load screens, instead of the ScummVM ones"), + "originalsaveload", + false + } + }, + + AD_EXTRA_GUI_OPTIONS_TERMINATOR }; class CineMetaEngine : public AdvancedMetaEngine { public: - CineMetaEngine() : AdvancedMetaEngine(Cine::gameDescriptions, sizeof(Cine::CINEGameDescription), cineGames) { + CineMetaEngine() : AdvancedMetaEngine(Cine::gameDescriptions, sizeof(Cine::CINEGameDescription), cineGames, optionsList) { _singleid = "cine"; - _guioptions = GUIO1(GUIO_NOSPEECH); + _guioptions = GUIO2(GUIO_NOSPEECH, GAMEOPTION_ORIGINAL_SAVELOAD); } virtual GameDescriptor findGame(const char *gameid) const { @@ -95,12 +102,6 @@ public: } virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const; - const ExtraGuiOptions getExtraGuiOptions(const Common::String &target) const { - ExtraGuiOptions options; - options.push_back(cineExtraGuiOption); - return options; - } - virtual bool hasFeature(MetaEngineFeature f) const; virtual SaveStateList listSaves(const char *target) const; virtual int getMaximumSaveSlot() const; diff --git a/engines/cine/detection_tables.h b/engines/cine/detection_tables.h index 1188deb1a6..ca6a8a9168 100644 --- a/engines/cine/detection_tables.h +++ b/engines/cine/detection_tables.h @@ -22,6 +22,8 @@ namespace Cine { +#define GAMEOPTION_ORIGINAL_SAVELOAD GUIO_GAMEOPTIONS1 + static const CINEGameDescription gameDescriptions[] = { { { |