QUUX: Update to the latest changes with debug flags
Some checks failed
CI / Windows (push) Has been cancelled
CI / Xcode (push) Has been cancelled

This commit is contained in:
Eugene Sandulenko 2021-05-23 19:11:06 +02:00
parent 4efb1c4fb5
commit 4a6489b14e
No known key found for this signature in database
GPG key ID: 014D387312D34F08
2 changed files with 13 additions and 4 deletions

View file

@ -22,6 +22,15 @@
#include "base/plugins.h"
#include "engines/advancedDetector.h"
#include "quux/quux.h"
// Here is the right place to set up the engine specific debug channels.
// The list must be terminated by the DEBUG_CHANNEL_END macro
static const DebugChannelDef debugFlagList[] = {
{ Quux::kQuuxDebugExample, "example", "this is just an example for a engine specific debug channel" },
{ Quux::kQuuxDebugExample2, "example2", "also an example" },
DEBUG_CHANNEL_END
};
namespace Quux {
static const PlainGameDescriptor quuxGames[] = {
@ -61,6 +70,10 @@ public:
const char *getOriginalCopyright() const override {
return "Copyright (C) Quux Entertainment Ltd.";
}
const DebugChannelDef *getDebugChannels() const override {
return debugFlagList;
}
};
REGISTER_PLUGIN_STATIC(QUUX_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, QuuxMetaEngineDetection);

View file

@ -50,10 +50,6 @@ QuuxEngine::QuuxEngine(OSystem *syst)
const Common::FSNode gameDataDir(ConfMan.get("path"));
SearchMan.addSubDirectoryMatching(gameDataDir, "sound");
// Here is the right place to set up the engine specific debug channels
DebugMan.addDebugChannel(kQuuxDebugExample, "example", "this is just an example for a engine specific debug channel");
DebugMan.addDebugChannel(kQuuxDebugExample2, "example2", "also an example");
// Don't forget to register your random source
_rnd = new Common::RandomSource("quux");