From c80dd052d76cada7cc40bd828fd70c19c6c66c5d Mon Sep 17 00:00:00 2001 From: ysj1173886760 <1173886760@qq.com> Date: Sun, 16 May 2021 15:39:39 +0800 Subject: [PATCH] CINE: move debug channels to metaEngineDetection --- engines/cine/cine.cpp | 4 ---- engines/cine/detection.cpp | 13 +++++++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/engines/cine/cine.cpp b/engines/cine/cine.cpp index 9c3a4cfbae0..d9dbfd69270 100644 --- a/engines/cine/cine.cpp +++ b/engines/cine/cine.cpp @@ -49,10 +49,6 @@ CineEngine::CineEngine(OSystem *syst, const CINEGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc), _rnd("cine") { - DebugMan.addDebugChannel(kCineDebugScript, "Script", "Script debug level"); - DebugMan.addDebugChannel(kCineDebugPart, "Part", "Part debug level"); - DebugMan.addDebugChannel(kCineDebugSound, "Sound", "Sound debug level"); - DebugMan.addDebugChannel(kCineDebugCollision, "Collision", "Collision debug level"); // Setup mixer syncSoundSettings(); diff --git a/engines/cine/detection.cpp b/engines/cine/detection.cpp index 561cba8e6c6..4f80daf7b8a 100644 --- a/engines/cine/detection.cpp +++ b/engines/cine/detection.cpp @@ -27,6 +27,7 @@ #include "common/translation.h" #include "cine/detection.h" +#include "cine/cine.h" static const PlainGameDescriptor cineGames[] = { {"fw", "Future Wars"}, @@ -36,6 +37,14 @@ static const PlainGameDescriptor cineGames[] = { #include "cine/detection_tables.h" +static const DebugChannelDef debugFlagList[] = { + {Cine::kCineDebugScript, "Script", "Script debug level"}, + {Cine::kCineDebugPart, "Part", "Part debug level"}, + {Cine::kCineDebugSound, "Sound", "Sound debug level"}, + {Cine::kCineDebugCollision, "Collision", "Collision debug level"}, + DEBUG_CHANNEL_END +}; + static const ADExtraGuiOptionsMap optionsList[] = { { GAMEOPTION_ORIGINAL_SAVELOAD, @@ -76,6 +85,10 @@ public: const char *getOriginalCopyright() const override { return "Cinematique evo 1 (C) Delphine Software"; } + + const DebugChannelDef *getDebugChannels() const override { + return debugFlagList; + } }; REGISTER_PLUGIN_STATIC(CINE_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, CineMetaEngineDetection);