PRIVATE: move debug channels to metaEngineDetection
This commit is contained in:
parent
9d0818015e
commit
043fda5c47
2 changed files with 12 additions and 5 deletions
|
@ -22,6 +22,14 @@
|
|||
|
||||
#include "base/plugins.h"
|
||||
#include "engines/advancedDetector.h"
|
||||
#include "private/private.h"
|
||||
|
||||
static const DebugChannelDef debugFlagList[] = {
|
||||
{Private::kPrivateDebugFunction, "functions", "Function execution debug channel"},
|
||||
{Private::kPrivateDebugCode, "code", "Code execution debug channel"},
|
||||
{Private::kPrivateDebugScript, "script", "Script execution debug channel"},
|
||||
DEBUG_CHANNEL_END
|
||||
};
|
||||
|
||||
namespace Private {
|
||||
static const PlainGameDescriptor privateGames[] = {
|
||||
|
@ -179,6 +187,10 @@ public:
|
|||
const char *getOriginalCopyright() const override {
|
||||
return "Copyright (C) Brooklyn Multimedia";
|
||||
}
|
||||
|
||||
const DebugChannelDef *getDebugChannels() const override {
|
||||
return debugFlagList;
|
||||
}
|
||||
};
|
||||
|
||||
REGISTER_PLUGIN_STATIC(PRIVATE_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, PrivateMetaEngineDetection);
|
||||
|
|
|
@ -52,11 +52,6 @@ PrivateEngine::PrivateEngine(OSystem *syst, const ADGameDescription *gd)
|
|||
_maxNumberClicks(0), _sirenWarning(0), _screenW(640), _screenH(480) {
|
||||
_rnd = new Common::RandomSource("private");
|
||||
|
||||
// Debug channels
|
||||
DebugMan.addDebugChannel(kPrivateDebugFunction, "functions", "Function execution debug channel");
|
||||
DebugMan.addDebugChannel(kPrivateDebugCode, "code", "Code execution debug channel");
|
||||
DebugMan.addDebugChannel(kPrivateDebugScript, "script", "Script execution debug channel");
|
||||
|
||||
// Global object for external reference
|
||||
g_private = this;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue