CINE: move debug channels to metaEngineDetection
This commit is contained in:
parent
b2f5ee4ab9
commit
c80dd052d7
2 changed files with 13 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue