SHERLOCK: move debug channels to metaEngineDetection

This commit is contained in:
ysj1173886760 2021-05-16 20:27:45 +08:00 committed by Eugene Sandulenko
parent 17efb68cba
commit 53dcc76913
2 changed files with 13 additions and 5 deletions

View file

@ -24,6 +24,7 @@
#include "engines/advancedDetector.h"
#include "sherlock/detection.h"
#include "sherlock/sherlock.h"
static const PlainGameDescriptor sherlockGames[] = {
{ "scalpel", "The Case of the Serrated Scalpel" },
@ -31,6 +32,14 @@ static const PlainGameDescriptor sherlockGames[] = {
{0, 0}
};
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
@ -137,6 +146,10 @@ public:
const char *getOriginalCopyright() const override {
return "Sherlock (C) 1992-1996 Mythos Software, (C) 1992-1996 Electronic Arts";
}
const DebugChannelDef *getDebugChannels() const override {
return debugFlagList;
}
};