MYST3: move debug channels to metaEngineDetection

This commit is contained in:
ysj1173886760 2021-05-16 19:52:11 +08:00 committed by Eugene Sandulenko
parent ad62915be3
commit 37e313bada
2 changed files with 13 additions and 4 deletions

View File

@ -24,6 +24,7 @@
#include "engines/advancedDetector.h"
#include "engines/myst3/detection.h"
#include "engines/myst3/myst3.h"
namespace Myst3 {
@ -33,6 +34,14 @@ static const PlainGameDescriptor myst3Games[] = {
{ 0, 0 }
};
static const DebugChannelDef debugFlagList[] = {
{Myst3::kDebugVariable, "Variable", "Track Variable Accesses"},
{Myst3::kDebugSaveLoad, "SaveLoad", "Track Save/Load Function"},
{Myst3::kDebugScript, "Script", "Track Script Execution"},
{Myst3::kDebugNode, "Node", "Track Node Changes"},
DEBUG_CHANNEL_END
};
static const char *directoryGlobs[] = {
"bin",
"M3Data",
@ -208,6 +217,10 @@ public:
const char *getOriginalCopyright() const override {
return "Myst III Exile (C) Presto Studios";
}
const DebugChannelDef *getDebugChannels() const override {
return debugFlagList;
}
};
} // End of namespace Myst3

View File

@ -77,10 +77,6 @@ Myst3Engine::Myst3Engine(OSystem *syst, const Myst3GameDescription *version) :
_backgroundSoundScriptLastRoomId(0),
_backgroundSoundScriptLastAgeId(0),
_transition(0), _frameLimiter(0), _inventoryManualHide(false) {
DebugMan.addDebugChannel(kDebugVariable, "Variable", "Track Variable Accesses");
DebugMan.addDebugChannel(kDebugSaveLoad, "SaveLoad", "Track Save/Load Function");
DebugMan.addDebugChannel(kDebugScript, "Script", "Track Script Execution");
DebugMan.addDebugChannel(kDebugNode, "Node", "Track Node Changes");
// Add subdirectories to the search path to allow running from a full HDD install
const Common::FSNode gameDataDir(ConfMan.get("path"));