mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
DREAMWEB: Move the engine options into the MetaEngine subclass
This commit is contained in:
parent
48e7c9c956
commit
c11cf35f48
@ -1,3 +1,3 @@
|
||||
engines/dreamweb/detection.cpp
|
||||
engines/dreamweb/metaengine.cpp
|
||||
engines/dreamweb/saveload.cpp
|
||||
|
||||
|
@ -23,7 +23,6 @@
|
||||
|
||||
#include "common/algorithm.h"
|
||||
#include "common/system.h"
|
||||
#include "common/translation.h"
|
||||
#include "common/text-to-speech.h"
|
||||
|
||||
#include "engines/advancedDetector.h"
|
||||
@ -44,66 +43,11 @@ static const DebugChannelDef debugFlagList[] = {
|
||||
|
||||
#include "dreamweb/detection_tables.h"
|
||||
|
||||
static const ADExtraGuiOptionsMap gameGuiOptions[] = {
|
||||
{
|
||||
GAMEOPTION_ORIGINAL_SAVELOAD,
|
||||
{
|
||||
_s("Use original save/load screens"),
|
||||
_s("Use the original save/load screens instead of the ScummVM ones"),
|
||||
"originalsaveload",
|
||||
false,
|
||||
0,
|
||||
0
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
GAMEOPTION_BRIGHTPALETTE,
|
||||
{
|
||||
_s("Use bright palette mode"),
|
||||
_s("Display graphics using the game's bright palette"),
|
||||
"bright_palette",
|
||||
true,
|
||||
0,
|
||||
0
|
||||
}
|
||||
},
|
||||
|
||||
#ifdef USE_TTS
|
||||
{
|
||||
GAMEOPTION_TTS_THINGS,
|
||||
{
|
||||
_s("Enable Text to Speech for Objects, Options, and the Bible Quote"),
|
||||
_s("Use TTS to read the descriptions (if TTS is available)"),
|
||||
"tts_enabled_objects",
|
||||
false,
|
||||
0,
|
||||
0
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
GAMEOPTION_TTS_SPEECH,
|
||||
{
|
||||
_s("Enable Text to Speech for Subtitles"),
|
||||
_s("Use TTS to read the subtitles (if TTS is available)"),
|
||||
"tts_enabled_speech",
|
||||
false,
|
||||
0,
|
||||
0
|
||||
}
|
||||
},
|
||||
#endif
|
||||
|
||||
AD_EXTRA_GUI_OPTIONS_TERMINATOR
|
||||
};
|
||||
|
||||
class DreamWebMetaEngineDetection : public AdvancedMetaEngineDetection {
|
||||
public:
|
||||
DreamWebMetaEngineDetection():
|
||||
AdvancedMetaEngineDetection(DreamWeb::gameDescriptions,
|
||||
sizeof(DreamWeb::DreamWebGameDescription), dreamWebGames,
|
||||
gameGuiOptions) {
|
||||
sizeof(DreamWeb::DreamWebGameDescription), dreamWebGames) {
|
||||
_guiOptions = GUIO5(GUIO_NOMIDI, GAMEOPTION_ORIGINAL_SAVELOAD, GAMEOPTION_BRIGHTPALETTE, GAMEOPTION_TTS_THINGS, GAMEOPTION_TTS_SPEECH);
|
||||
}
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "common/savefile.h"
|
||||
#include "common/translation.h"
|
||||
|
||||
#include "graphics/thumbnail.h"
|
||||
|
||||
@ -28,12 +29,70 @@
|
||||
#include "dreamweb/dreamweb.h"
|
||||
#include "dreamweb/detection.h"
|
||||
|
||||
static const ADExtraGuiOptionsMap gameGuiOptions[] = {
|
||||
{
|
||||
GAMEOPTION_ORIGINAL_SAVELOAD,
|
||||
{
|
||||
_s("Use original save/load screens"),
|
||||
_s("Use the original save/load screens instead of the ScummVM ones"),
|
||||
"originalsaveload",
|
||||
false,
|
||||
0,
|
||||
0
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
GAMEOPTION_BRIGHTPALETTE,
|
||||
{
|
||||
_s("Use bright palette mode"),
|
||||
_s("Display graphics using the game's bright palette"),
|
||||
"bright_palette",
|
||||
true,
|
||||
0,
|
||||
0
|
||||
}
|
||||
},
|
||||
|
||||
#ifdef USE_TTS
|
||||
{
|
||||
GAMEOPTION_TTS_THINGS,
|
||||
{
|
||||
_s("Enable Text to Speech for Objects, Options, and the Bible Quote"),
|
||||
_s("Use TTS to read the descriptions (if TTS is available)"),
|
||||
"tts_enabled_objects",
|
||||
false,
|
||||
0,
|
||||
0
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
GAMEOPTION_TTS_SPEECH,
|
||||
{
|
||||
_s("Enable Text to Speech for Subtitles"),
|
||||
_s("Use TTS to read the subtitles (if TTS is available)"),
|
||||
"tts_enabled_speech",
|
||||
false,
|
||||
0,
|
||||
0
|
||||
}
|
||||
},
|
||||
#endif
|
||||
|
||||
AD_EXTRA_GUI_OPTIONS_TERMINATOR
|
||||
};
|
||||
|
||||
class DreamWebMetaEngine : public AdvancedMetaEngine {
|
||||
public:
|
||||
const char *getName() const override {
|
||||
return "dreamweb";
|
||||
}
|
||||
|
||||
const ADExtraGuiOptionsMap *getAdvancedExtraGuiOptions() const override {
|
||||
return gameGuiOptions;
|
||||
}
|
||||
|
||||
Common::Error createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const override;
|
||||
|
||||
bool hasFeature(MetaEngineFeature f) const override;
|
||||
|
Loading…
Reference in New Issue
Block a user