CGE2: move debug channels to metaEngineDetection

This commit is contained in:
ysj1173886760 2021-05-15 20:53:34 +08:00 committed by Eugene Sandulenko
parent 7a0d9546ce
commit b2f5ee4ab9
2 changed files with 10 additions and 3 deletions

View File

@ -46,9 +46,6 @@ namespace CGE2 {
CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription)
: Engine(syst), _gameDescription(gameDescription), _randomSource("cge2") {
// Debug/console setup
DebugMan.addDebugChannel(kCGE2DebugOpcode, "opcode", "CGE2 opcode debug channel");
_resman = nullptr;
_vga = nullptr;
_midiPlayer = nullptr;

View File

@ -28,6 +28,12 @@
#include "engines/advancedDetector.h"
#include "common/translation.h"
#include "cge2/fileio.h"
#include "cge2/cge2.h"
static const DebugChannelDef debugFlagList[] = {
{CGE2::kCGE2DebugOpcode, "opcode", "CGE2 opcode debug channel"},
DEBUG_CHANNEL_END
};
namespace CGE2 {
@ -115,6 +121,10 @@ public:
return "Sfinx (C) 1994-1997 Janusz B. Wisniewski and L.K. Avalon";
}
const DebugChannelDef *getDebugChannels() const override {
return debugFlagList;
}
ADDetectedGame fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const override;
};