MYST3: move debug channels to metaEngineDetection
This commit is contained in:
parent
ad62915be3
commit
37e313bada
2 changed files with 13 additions and 4 deletions
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
#include "engines/advancedDetector.h"
|
#include "engines/advancedDetector.h"
|
||||||
#include "engines/myst3/detection.h"
|
#include "engines/myst3/detection.h"
|
||||||
|
#include "engines/myst3/myst3.h"
|
||||||
|
|
||||||
|
|
||||||
namespace Myst3 {
|
namespace Myst3 {
|
||||||
|
@ -33,6 +34,14 @@ static const PlainGameDescriptor myst3Games[] = {
|
||||||
{ 0, 0 }
|
{ 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[] = {
|
static const char *directoryGlobs[] = {
|
||||||
"bin",
|
"bin",
|
||||||
"M3Data",
|
"M3Data",
|
||||||
|
@ -208,6 +217,10 @@ public:
|
||||||
const char *getOriginalCopyright() const override {
|
const char *getOriginalCopyright() const override {
|
||||||
return "Myst III Exile (C) Presto Studios";
|
return "Myst III Exile (C) Presto Studios";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const DebugChannelDef *getDebugChannels() const override {
|
||||||
|
return debugFlagList;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End of namespace Myst3
|
} // End of namespace Myst3
|
||||||
|
|
|
@ -77,10 +77,6 @@ Myst3Engine::Myst3Engine(OSystem *syst, const Myst3GameDescription *version) :
|
||||||
_backgroundSoundScriptLastRoomId(0),
|
_backgroundSoundScriptLastRoomId(0),
|
||||||
_backgroundSoundScriptLastAgeId(0),
|
_backgroundSoundScriptLastAgeId(0),
|
||||||
_transition(0), _frameLimiter(0), _inventoryManualHide(false) {
|
_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
|
// Add subdirectories to the search path to allow running from a full HDD install
|
||||||
const Common::FSNode gameDataDir(ConfMan.get("path"));
|
const Common::FSNode gameDataDir(ConfMan.get("path"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue