NANCY: move debug channels to metaEngineDetection

This commit is contained in:
ysj1173886760 2021-05-16 19:55:37 +08:00 committed by Eugene Sandulenko
parent 37e313bada
commit 04d03fe7f0
2 changed files with 12 additions and 4 deletions

View File

@ -23,6 +23,7 @@
#include "common/config-manager.h"
#include "engines/nancy/detection.h"
#include "engines/nancy/nancy.h"
//#include "engines/nancy/dialogs.h"
const char *const directoryGlobs[] = {
@ -32,6 +33,13 @@ const char *const directoryGlobs[] = {
0
};
static const DebugChannelDef debugFlagList[] = {
{Nancy::kDebugEngine, "Engine", "Engine debug level"},
{Nancy::kDebugActionRecord, "ActionRecord", "Action Record debug level"},
{Nancy::kDebugScene, "Scene", "Scene debug level"},
DEBUG_CHANNEL_END
};
static const PlainGameDescriptor nancyGames[] = {
// Games
{"vampirediaries", "The Vampire Diaries"},
@ -236,6 +244,10 @@ public:
return "Nancy Drew Engine copyright Her Interactive, 1995-2012";
}
virtual const DebugChannelDef *getDebugChannels() const override {
return debugFlagList;
}
virtual void registerDefaultSettings(const Common::String &target) const override;
//virtual GUI::OptionsContainerWidget *buildEngineOptionsWidgetStatic(GUI::GuiObject *boss, const Common::String &name, const Common::String &target) const override;
};

View File

@ -55,10 +55,6 @@ NancyEngine *g_nancy;
NancyEngine::NancyEngine(OSystem *syst, const NancyGameDescription *gd) : Engine(syst), _gameDescription(gd), _system(syst) {
g_nancy = this;
DebugMan.addDebugChannel(kDebugEngine, "Engine", "Engine debug level");
DebugMan.addDebugChannel(kDebugActionRecord, "ActionRecord", "Action Record debug level");
DebugMan.addDebugChannel(kDebugScene, "Scene", "Scene debug level");
_randomSource = new Common::RandomSource("Nancy");
_randomSource->setSeed(_randomSource->getSeed());