mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
CINE: move debug channels to metaEngineDetection
This commit is contained in:
committed by
Eugene Sandulenko
parent
b2f5ee4ab9
commit
c80dd052d7
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user