HOPKINS: move debug channels to metaEngineDetection

This commit is contained in:
ysj1173886760 2021-05-16 16:16:42 +08:00 committed by Eugene Sandulenko
parent 9d585ee994
commit cd6a9db116
2 changed files with 11 additions and 2 deletions

View File

@ -25,6 +25,13 @@
#include "common/translation.h"
#include "hopkins/detection.h"
#include "hopkins/hopkins.h"
static const DebugChannelDef debugFlagList[] = {
{Hopkins::kDebugPath, "Path", "Pathfinding debug level"},
{Hopkins::kDebugGraphics, "Graphics", "Graphics debug level"},
DEBUG_CHANNEL_END
};
static const PlainGameDescriptor hopkinsGames[] = {
{"hopkins", "Hopkins FBI"},
@ -81,6 +88,10 @@ public:
const char *getOriginalCopyright() const override {
return "Hopkins FBI (C) 1997-2003 MP Entertainment";
}
const DebugChannelDef *getDebugChannels() const override {
return debugFlagList;
}
};

View File

@ -37,8 +37,6 @@ namespace Hopkins {
HopkinsEngine::HopkinsEngine(OSystem *syst, const HopkinsGameDescription *gameDesc) : Engine(syst),
_gameDescription(gameDesc), _randomSource("Hopkins") {
DebugMan.addDebugChannel(kDebugPath, "Path", "Pathfinding debug level");
DebugMan.addDebugChannel(kDebugGraphics, "Graphics", "Graphics debug level");
_animMan = new AnimationManager(this);
_computer = new ComputerManager(this);
_dialog = new DialogsManager(this);