mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
CGE2: move debug channels to metaEngineDetection
This commit is contained in:
parent
7a0d9546ce
commit
b2f5ee4ab9
@ -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;
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user