mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-15 05:00:47 +00:00
GOB: move debug channels to metaEngineDetection
This commit is contained in:
parent
e42e1bcb25
commit
3f74a19d81
@ -26,6 +26,23 @@
|
|||||||
#include "gob/dataio.h"
|
#include "gob/dataio.h"
|
||||||
#include "gob/detection/detection.h"
|
#include "gob/detection/detection.h"
|
||||||
#include "gob/detection/tables.h"
|
#include "gob/detection/tables.h"
|
||||||
|
#include "gob/gob.h"
|
||||||
|
|
||||||
|
static const DebugChannelDef debugFlagList[] = {
|
||||||
|
{Gob::kDebugFuncOp, "FuncOpcodes", "Script FuncOpcodes debug level"},
|
||||||
|
{Gob::kDebugDrawOp, "DrawOpcodes", "Script DrawOpcodes debug level"},
|
||||||
|
{Gob::kDebugGobOp, "GoblinOpcodes", "Script GoblinOpcodes debug level"},
|
||||||
|
{Gob::kDebugSound, "Sound", "Sound output debug level"},
|
||||||
|
{Gob::kDebugExpression, "Expression", "Expression parser debug level"},
|
||||||
|
{Gob::kDebugGameFlow, "Gameflow", "Gameflow debug level"},
|
||||||
|
{Gob::kDebugFileIO, "FileIO", "File Input/Output debug level"},
|
||||||
|
{Gob::kDebugSaveLoad, "SaveLoad", "Saving/Loading debug level"},
|
||||||
|
{Gob::kDebugGraphics, "Graphics", "Graphics debug level"},
|
||||||
|
{Gob::kDebugVideo, "Video", "IMD/VMD video debug level"},
|
||||||
|
{Gob::kDebugHotspots, "Hotspots", "Hotspots debug level"},
|
||||||
|
{Gob::kDebugDemo, "Demo", "Demo script debug level"},
|
||||||
|
DEBUG_CHANNEL_END
|
||||||
|
};
|
||||||
|
|
||||||
class GobMetaEngineDetection : public AdvancedMetaEngineDetection {
|
class GobMetaEngineDetection : public AdvancedMetaEngineDetection {
|
||||||
public:
|
public:
|
||||||
@ -38,6 +55,10 @@ public:
|
|||||||
const char *getName() const override;
|
const char *getName() const override;
|
||||||
const char *getOriginalCopyright() const override;
|
const char *getOriginalCopyright() const override;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -116,19 +116,6 @@ void PauseDialog::handleKeyDown(Common::KeyState state) {
|
|||||||
|
|
||||||
|
|
||||||
GobEngine::GobEngine(OSystem *syst) : Engine(syst), _rnd("gob") {
|
GobEngine::GobEngine(OSystem *syst) : Engine(syst), _rnd("gob") {
|
||||||
DebugMan.addDebugChannel(kDebugFuncOp, "FuncOpcodes", "Script FuncOpcodes debug level");
|
|
||||||
DebugMan.addDebugChannel(kDebugDrawOp, "DrawOpcodes", "Script DrawOpcodes debug level");
|
|
||||||
DebugMan.addDebugChannel(kDebugGobOp, "GoblinOpcodes", "Script GoblinOpcodes debug level");
|
|
||||||
DebugMan.addDebugChannel(kDebugSound, "Sound", "Sound output debug level");
|
|
||||||
DebugMan.addDebugChannel(kDebugExpression, "Expression", "Expression parser debug level");
|
|
||||||
DebugMan.addDebugChannel(kDebugGameFlow, "Gameflow", "Gameflow debug level");
|
|
||||||
DebugMan.addDebugChannel(kDebugFileIO, "FileIO", "File Input/Output debug level");
|
|
||||||
DebugMan.addDebugChannel(kDebugSaveLoad, "SaveLoad", "Saving/Loading debug level");
|
|
||||||
DebugMan.addDebugChannel(kDebugGraphics, "Graphics", "Graphics debug level");
|
|
||||||
DebugMan.addDebugChannel(kDebugVideo, "Video", "IMD/VMD video debug level");
|
|
||||||
DebugMan.addDebugChannel(kDebugHotspots, "Hotspots", "Hotspots debug level");
|
|
||||||
DebugMan.addDebugChannel(kDebugDemo, "Demo", "Demo script debug level");
|
|
||||||
|
|
||||||
_sound = 0; _mult = 0; _game = 0;
|
_sound = 0; _mult = 0; _game = 0;
|
||||||
_global = 0; _dataIO = 0; _goblin = 0;
|
_global = 0; _dataIO = 0; _goblin = 0;
|
||||||
_vidPlayer = 0; _init = 0; _inter = 0;
|
_vidPlayer = 0; _init = 0; _inter = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user