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.
|
|
|
|
*
|
2021-12-26 17:47:58 +00:00
|
|
|
* 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-05-09 16:04:13 +00:00
|
|
|
*
|
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-05-09 16:04:13 +00:00
|
|
|
*
|
2015-03-15 20:52:55 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
2021-12-26 17:47:58 +00:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2015-03-15 20:52:55 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-05-14 23:53:03 +00:00
|
|
|
#include "common/translation.h"
|
2015-03-15 20:52:55 +00:00
|
|
|
#include "engines/advancedDetector.h"
|
|
|
|
|
2020-08-25 08:22:43 +00:00
|
|
|
#include "sherlock/detection.h"
|
2021-05-16 12:27:45 +00:00
|
|
|
#include "sherlock/sherlock.h"
|
2015-03-15 20:52:55 +00:00
|
|
|
|
|
|
|
static const PlainGameDescriptor sherlockGames[] = {
|
2022-10-27 10:58:37 +00:00
|
|
|
{ "scalpel", "The Lost Files of Sherlock Holmes: The Case of the Serrated Scalpel" },
|
2022-10-16 05:21:27 +00:00
|
|
|
{ "rosetattoo", "The Lost Files of Sherlock Holmes: Case of the Rose Tattoo" },
|
2021-11-13 21:40:39 +00:00
|
|
|
{nullptr, nullptr}
|
2015-03-15 20:52:55 +00:00
|
|
|
};
|
|
|
|
|
2021-05-16 12:27:45 +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
|
|
|
|
};
|
|
|
|
|
2015-05-14 23:53:03 +00:00
|
|
|
|
|
|
|
#define GAMEOPTION_ORIGINAL_SAVES GUIO_GAMEOPTIONS1
|
2015-05-19 00:43:26 +00:00
|
|
|
#define GAMEOPTION_FADE_STYLE GUIO_GAMEOPTIONS2
|
|
|
|
#define GAMEOPTION_HELP_STYLE GUIO_GAMEOPTIONS3
|
|
|
|
#define GAMEOPTION_PORTRAITS_ON GUIO_GAMEOPTIONS4
|
|
|
|
#define GAMEOPTION_WINDOW_STYLE GUIO_GAMEOPTIONS5
|
2019-12-21 14:49:13 +00:00
|
|
|
#define GAMEOPTION_TRANSPARENT_WINDOWS GUIO_GAMEOPTIONS6
|
|
|
|
|
|
|
|
#ifdef USE_TTS
|
|
|
|
#define GAMEOPTION_TTS_NARRATOR GUIO_GAMEOPTIONS7
|
|
|
|
#endif
|
2015-05-14 23:53:03 +00:00
|
|
|
|
|
|
|
static const ADExtraGuiOptionsMap optionsList[] = {
|
|
|
|
{
|
|
|
|
GAMEOPTION_ORIGINAL_SAVES,
|
|
|
|
{
|
2016-11-29 09:41:45 +00:00
|
|
|
_s("Use original save/load screens"),
|
2016-11-29 19:02:50 +00:00
|
|
|
_s("Use the original save/load screens instead of the ScummVM ones"),
|
2015-05-15 23:36:39 +00:00
|
|
|
"originalsaveload",
|
2022-03-28 07:50:07 +00:00
|
|
|
false,
|
|
|
|
0,
|
|
|
|
0
|
2015-05-14 23:53:03 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2015-05-19 00:43:26 +00:00
|
|
|
{
|
|
|
|
GAMEOPTION_FADE_STYLE,
|
|
|
|
{
|
|
|
|
_s("Pixellated scene transitions"),
|
|
|
|
_s("When changing scenes, a randomized pixel transition is done"),
|
|
|
|
"fade_style",
|
2022-03-28 07:50:07 +00:00
|
|
|
true,
|
|
|
|
0,
|
|
|
|
0
|
2015-05-19 00:43:26 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
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",
|
2022-03-28 07:50:07 +00:00
|
|
|
false,
|
|
|
|
0,
|
|
|
|
0
|
2015-05-19 00:43:26 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
GAMEOPTION_PORTRAITS_ON,
|
|
|
|
{
|
|
|
|
_s("Show character portraits"),
|
|
|
|
_s("Show portraits for the characters when conversing"),
|
|
|
|
"portraits_on",
|
2022-03-28 07:50:07 +00:00
|
|
|
true,
|
|
|
|
0,
|
|
|
|
0
|
2015-05-19 00:43:26 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
GAMEOPTION_WINDOW_STYLE,
|
|
|
|
{
|
|
|
|
_s("Slide dialogs into view"),
|
|
|
|
_s("Slide UI dialogs into view, rather than simply showing them immediately"),
|
|
|
|
"window_style",
|
2022-03-28 07:50:07 +00:00
|
|
|
true,
|
|
|
|
0,
|
|
|
|
0
|
2015-05-19 00:43:26 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2015-07-25 01:47:05 +00:00
|
|
|
{
|
|
|
|
GAMEOPTION_TRANSPARENT_WINDOWS,
|
|
|
|
{
|
|
|
|
_s("Transparent windows"),
|
|
|
|
_s("Show windows with a partially transparent background"),
|
|
|
|
"transparent_windows",
|
2022-03-28 07:50:07 +00:00
|
|
|
true,
|
|
|
|
0,
|
|
|
|
0
|
2015-07-25 01:47:05 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2019-12-21 14:49:13 +00:00
|
|
|
#ifdef USE_TTS
|
|
|
|
{
|
|
|
|
GAMEOPTION_TTS_NARRATOR,
|
|
|
|
{
|
|
|
|
_s("TTS Narrator"),
|
|
|
|
_s("Use TTS to read the descriptions (if TTS is available)"),
|
|
|
|
"tts_narrator",
|
2022-03-28 07:50:07 +00:00
|
|
|
false,
|
|
|
|
0,
|
|
|
|
0
|
2019-12-21 14:49:13 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
#endif
|
2015-05-14 23:53:03 +00:00
|
|
|
AD_EXTRA_GUI_OPTIONS_TERMINATOR
|
|
|
|
};
|
|
|
|
|
2015-05-19 00:43:26 +00:00
|
|
|
|
2020-08-25 08:22:43 +00:00
|
|
|
#include "sherlock/detection_tables.h"
|
2015-03-15 20:52:55 +00:00
|
|
|
|
2020-10-11 21:14:39 +00:00
|
|
|
class SherlockMetaEngineDetection : public AdvancedMetaEngineDetection {
|
2015-03-15 20:52:55 +00:00
|
|
|
public:
|
2020-10-11 21:14:39 +00:00
|
|
|
SherlockMetaEngineDetection() : AdvancedMetaEngineDetection(Sherlock::gameDescriptions, sizeof(Sherlock::SherlockGameDescription),
|
2015-05-14 23:53:03 +00:00
|
|
|
sherlockGames, optionsList) {}
|
2015-03-15 20:52:55 +00:00
|
|
|
|
2022-01-13 20:34:25 +00:00
|
|
|
const char *getName() const override {
|
2016-09-15 16:23:35 +00:00
|
|
|
return "sherlock";
|
|
|
|
}
|
|
|
|
|
2022-01-13 20:34:25 +00:00
|
|
|
const char *getEngineName() const override {
|
2016-09-15 18:04:14 +00:00
|
|
|
return "Sherlock";
|
2015-03-15 20:52:55 +00:00
|
|
|
}
|
|
|
|
|
2020-02-09 11:05:32 +00:00
|
|
|
const char *getOriginalCopyright() const override {
|
2016-09-15 18:04:14 +00:00
|
|
|
return "Sherlock (C) 1992-1996 Mythos Software, (C) 1992-1996 Electronic Arts";
|
2015-03-15 20:52:55 +00:00
|
|
|
}
|
2021-05-16 12:27:45 +00:00
|
|
|
|
|
|
|
const DebugChannelDef *getDebugChannels() const override {
|
|
|
|
return debugFlagList;
|
|
|
|
}
|
2015-03-15 20:52:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-10-11 21:14:39 +00:00
|
|
|
REGISTER_PLUGIN_STATIC(SHERLOCK_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, SherlockMetaEngineDetection);
|