mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 09:49:14 +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)
|
CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription)
|
||||||
: Engine(syst), _gameDescription(gameDescription), _randomSource("cge2") {
|
: Engine(syst), _gameDescription(gameDescription), _randomSource("cge2") {
|
||||||
|
|
||||||
// Debug/console setup
|
|
||||||
DebugMan.addDebugChannel(kCGE2DebugOpcode, "opcode", "CGE2 opcode debug channel");
|
|
||||||
|
|
||||||
_resman = nullptr;
|
_resman = nullptr;
|
||||||
_vga = nullptr;
|
_vga = nullptr;
|
||||||
_midiPlayer = nullptr;
|
_midiPlayer = nullptr;
|
||||||
|
@ -28,6 +28,12 @@
|
|||||||
#include "engines/advancedDetector.h"
|
#include "engines/advancedDetector.h"
|
||||||
#include "common/translation.h"
|
#include "common/translation.h"
|
||||||
#include "cge2/fileio.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 {
|
namespace CGE2 {
|
||||||
|
|
||||||
@ -115,6 +121,10 @@ public:
|
|||||||
return "Sfinx (C) 1994-1997 Janusz B. Wisniewski and L.K. Avalon";
|
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;
|
ADDetectedGame fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user