scummvm/engines/sherlock/detection.cpp

170 lines
4.1 KiB
C++
Raw Normal View History

2015-03-15 20:52:55 +00:00
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
2015-03-15 20:52:55 +00:00
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
2015-03-15 20:52:55 +00:00
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
2015-03-15 20:52:55 +00:00
*
*/
#include "common/translation.h"
2015-03-15 20:52:55 +00:00
#include "engines/advancedDetector.h"
#include "sherlock/detection.h"
#include "sherlock/sherlock.h"
2015-03-15 20:52:55 +00:00
static const PlainGameDescriptor sherlockGames[] = {
{ "scalpel", "The Lost Files of Sherlock Holmes: The Case of the Serrated Scalpel" },
{ "rosetattoo", "The Lost Files of Sherlock Holmes: Case of the Rose Tattoo" },
{nullptr, nullptr}
2015-03-15 20:52:55 +00:00
};
static const DebugChannelDef debugFlagList[] = {
{Sherlock::kDebugLevelScript, "scripts", "Script debug level"},
{Sherlock::kDebugLevelAdLibDriver, "AdLib", "AdLib driver debugging"},
{Sherlock::kDebugLevelMT32Driver, "MT32", "MT32 driver debugging"},
{Sherlock::kDebugLevelMusic, "Music", "Music debugging"},
DEBUG_CHANNEL_END
};
#define GAMEOPTION_ORIGINAL_SAVES GUIO_GAMEOPTIONS1
#define GAMEOPTION_FADE_STYLE GUIO_GAMEOPTIONS2
#define GAMEOPTION_HELP_STYLE GUIO_GAMEOPTIONS3
#define GAMEOPTION_PORTRAITS_ON GUIO_GAMEOPTIONS4
#define GAMEOPTION_WINDOW_STYLE GUIO_GAMEOPTIONS5
#define GAMEOPTION_TRANSPARENT_WINDOWS GUIO_GAMEOPTIONS6
#ifdef USE_TTS
#define GAMEOPTION_TTS_NARRATOR GUIO_GAMEOPTIONS7
#endif
static const ADExtraGuiOptionsMap optionsList[] = {
{
GAMEOPTION_ORIGINAL_SAVES,
{
2016-11-29 09:41:45 +00:00
_s("Use original save/load screens"),
_s("Use the original save/load screens instead of the ScummVM ones"),
"originalsaveload",
false,
0,
0
}
},
{
GAMEOPTION_FADE_STYLE,
{
_s("Pixellated scene transitions"),
_s("When changing scenes, a randomized pixel transition is done"),
"fade_style",
true,
0,
0
}
},
{
GAMEOPTION_HELP_STYLE,
{
_s("Don't show hotspots when moving mouse"),
_s("Only show hotspot names after you actually click on a hotspot or action button"),
"help_style",
false,
0,
0
}
},
{
GAMEOPTION_PORTRAITS_ON,
{
_s("Show character portraits"),
_s("Show portraits for the characters when conversing"),
"portraits_on",
true,
0,
0
}
},
{
GAMEOPTION_WINDOW_STYLE,
{
_s("Slide dialogs into view"),
_s("Slide UI dialogs into view, rather than simply showing them immediately"),
"window_style",
true,
0,
0
}
},
{
GAMEOPTION_TRANSPARENT_WINDOWS,
{
_s("Transparent windows"),
_s("Show windows with a partially transparent background"),
"transparent_windows",
true,
0,
0
}
},
#ifdef USE_TTS
{
GAMEOPTION_TTS_NARRATOR,
{
_s("TTS Narrator"),
_s("Use TTS to read the descriptions (if TTS is available)"),
"tts_narrator",
false,
0,
0
}
},
#endif
AD_EXTRA_GUI_OPTIONS_TERMINATOR
};
#include "sherlock/detection_tables.h"
2015-03-15 20:52:55 +00:00
class SherlockMetaEngineDetection : public AdvancedMetaEngineDetection {
2015-03-15 20:52:55 +00:00
public:
SherlockMetaEngineDetection() : AdvancedMetaEngineDetection(Sherlock::gameDescriptions, sizeof(Sherlock::SherlockGameDescription),
sherlockGames, optionsList) {}
2015-03-15 20:52:55 +00:00
const char *getName() const override {
return "sherlock";
}
const char *getEngineName() const override {
return "Sherlock";
2015-03-15 20:52:55 +00:00
}
2020-02-09 11:05:32 +00:00
const char *getOriginalCopyright() const override {
return "Sherlock (C) 1992-1996 Mythos Software, (C) 1992-1996 Electronic Arts";
2015-03-15 20:52:55 +00:00
}
const DebugChannelDef *getDebugChannels() const override {
return debugFlagList;
}
2015-03-15 20:52:55 +00:00
};
REGISTER_PLUGIN_STATIC(SHERLOCK_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, SherlockMetaEngineDetection);