diff options
author | Strangerke | 2014-02-02 16:20:17 +0100 |
---|---|---|
committer | Strangerke | 2014-02-02 16:20:17 +0100 |
commit | 6bcc8dfee62b9781758017a3a54df0b69c77479e (patch) | |
tree | 47f637af72a1596c14ccf9f538f2ba1b39acc7f6 /engines/hopkins/detection.cpp | |
parent | ea9fee35e80bcbb5040da4ea7d8de48d2fa339ae (diff) | |
download | scummvm-rg350-6bcc8dfee62b9781758017a3a54df0b69c77479e.tar.gz scummvm-rg350-6bcc8dfee62b9781758017a3a54df0b69c77479e.tar.bz2 scummvm-rg350-6bcc8dfee62b9781758017a3a54df0b69c77479e.zip |
HOPKINS: Initialize censorship based on per-engine GUI option instead of optional text flag
Diffstat (limited to 'engines/hopkins/detection.cpp')
-rw-r--r-- | engines/hopkins/detection.cpp | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/engines/hopkins/detection.cpp b/engines/hopkins/detection.cpp index c617a5aacf..b81f51e607 100644 --- a/engines/hopkins/detection.cpp +++ b/engines/hopkins/detection.cpp @@ -29,6 +29,7 @@ #include "common/memstream.h" #include "engines/advancedDetector.h" #include "common/system.h" +#include "common/translation.h" #include "graphics/colormasks.h" #include "graphics/surface.h" @@ -69,6 +70,30 @@ static const PlainGameDescriptor hopkinsGames[] = { #include "hopkins/detection_tables.h" +static const ADExtraGuiOptionsMap optionsList[] = { + { + GAMEOPTION_GORE_DEFAULT_OFF, + { + _s("Gore Mode"), + _s("Enable Gore Mode when available"), + "enable_gore", + false + } + }, + + { + GAMEOPTION_GORE_DEFAULT_ON, + { + _s("Gore Mode"), + _s("Enable Gore Mode when available"), + "enable_gore", + true + } + }, + + AD_EXTRA_GUI_OPTIONS_TERMINATOR +}; + const static char *directoryGlobs[] = { "voice", "link", @@ -77,7 +102,7 @@ const static char *directoryGlobs[] = { class HopkinsMetaEngine : public AdvancedMetaEngine { public: - HopkinsMetaEngine() : AdvancedMetaEngine(Hopkins::gameDescriptions, sizeof(Hopkins::HopkinsGameDescription), hopkinsGames) { + HopkinsMetaEngine() : AdvancedMetaEngine(Hopkins::gameDescriptions, sizeof(Hopkins::HopkinsGameDescription), hopkinsGames, optionsList) { _maxScanDepth = 3; _directoryGlobs = directoryGlobs; } |