mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
NANCY: move debug channels to metaEngineDetection
This commit is contained in:
parent
37e313bada
commit
04d03fe7f0
@ -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;
|
||||
};
|
||||
|
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user