SUPERNOVA: Move the engine options into the MetaEngine subclass
This commit is contained in:
parent
6a1bccc649
commit
32c49c29be
4 changed files with 65 additions and 34 deletions
|
@ -22,46 +22,15 @@
|
|||
#include "base/plugins.h"
|
||||
#include "common/file.h"
|
||||
#include "common/gui_options.h"
|
||||
#include "common/translation.h"
|
||||
#include "engines/advancedDetector.h"
|
||||
#include "supernova/supernova.h"
|
||||
|
||||
#define GAMEOPTION_IMPROVED GUIO_GAMEOPTIONS1
|
||||
#define GAMEOPTION_TTS GUIO_GAMEOPTIONS2
|
||||
#include "supernova/detection.h"
|
||||
|
||||
static const DebugChannelDef debugFlagList[] = {
|
||||
{Supernova::kDebugGeneral, "general", "Supernova general debug channel"},
|
||||
DEBUG_CHANNEL_END
|
||||
};
|
||||
|
||||
static const ADExtraGuiOptionsMap optionsList[] = {
|
||||
{
|
||||
GAMEOPTION_IMPROVED,
|
||||
{
|
||||
_s("Improved mode"),
|
||||
_s("Removes some repetitive actions, adds possibility to change verbs by keyboard"),
|
||||
"improved",
|
||||
true,
|
||||
0,
|
||||
0
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
GAMEOPTION_TTS,
|
||||
{
|
||||
_s("Enable Text to Speech"),
|
||||
_s("Use TTS to read the descriptions (if TTS is available)"),
|
||||
"tts_enabled",
|
||||
false,
|
||||
0,
|
||||
0
|
||||
}
|
||||
},
|
||||
|
||||
AD_EXTRA_GUI_OPTIONS_TERMINATOR
|
||||
};
|
||||
|
||||
static const PlainGameDescriptor supernovaGames[] = {
|
||||
{"msn1", "Mission Supernova 1"},
|
||||
{"msn2", "Mission Supernova 2"},
|
||||
|
@ -123,7 +92,7 @@ static const ADGameDescription gameDescriptions[] = {
|
|||
|
||||
class SupernovaMetaEngineDetection: public AdvancedMetaEngineDetection {
|
||||
public:
|
||||
SupernovaMetaEngineDetection() : AdvancedMetaEngineDetection(Supernova::gameDescriptions, sizeof(ADGameDescription), supernovaGames, optionsList) {
|
||||
SupernovaMetaEngineDetection() : AdvancedMetaEngineDetection(Supernova::gameDescriptions, sizeof(ADGameDescription), supernovaGames) {
|
||||
}
|
||||
|
||||
const char *getName() const override {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue