diff --git a/engines/macventure/detection.cpp b/engines/macventure/detection.cpp index 795cefb9d9c..327f69e8021 100644 --- a/engines/macventure/detection.cpp +++ b/engines/macventure/detection.cpp @@ -23,6 +23,7 @@ #include "base/plugins.h" #include "engines/advancedDetector.h" +#include "macventure/macventure.h" namespace MacVenture { @@ -39,6 +40,17 @@ static const ADGameDescription gameDescriptions[] = { } // End of namespace MacVenture +static const DebugChannelDef debugFlagList[] = { + {MacVenture::kMVDebugMain, "main", "Engine state"}, + {MacVenture::kMVDebugGUI, "gui", "Gui"}, + {MacVenture::kMVDebugText, "text", "Text decoders and printers"}, + {MacVenture::kMVDebugImage, "image", "Image decoders and renderers"}, + {MacVenture::kMVDebugScript, "script", "Script engine"}, + {MacVenture::kMVDebugSound, "sound", "Sound decoders"}, + {MacVenture::kMVDebugContainer, "container", "Containers"}, + DEBUG_CHANNEL_END +}; + static const PlainGameDescriptor macventureGames[] = { { "shadowgate", "Shadowgate" }, { "deja_vu", "Deja Vu"}, @@ -68,6 +80,10 @@ public: const char *getOriginalCopyright() const override { return "(C) ICOM Simulations"; } + + const DebugChannelDef *getDebugChannels() const override { + return debugFlagList; + } }; } // End of namespace MacVenture diff --git a/engines/macventure/macventure.cpp b/engines/macventure/macventure.cpp index 40ce781ae09..151d2d71558 100644 --- a/engines/macventure/macventure.cpp +++ b/engines/macventure/macventure.cpp @@ -64,8 +64,6 @@ MacVentureEngine::MacVentureEngine(OSystem *syst, const ADGameDescription *gameD _gameDescription = gameDesc; _rnd = new Common::RandomSource("macventure"); - initDebugChannels(); - _resourceManager = NULL; _globalSettings = NULL; _gui = NULL; @@ -130,16 +128,6 @@ MacVentureEngine::~MacVentureEngine() { delete _dataBundle; } -void MacVentureEngine::initDebugChannels() { - DebugMan.addDebugChannel(kMVDebugMain, "main", "Engine state"); - DebugMan.addDebugChannel(kMVDebugGUI, "gui", "Gui"); - DebugMan.addDebugChannel(kMVDebugText, "text", "Text decoders and printers"); - DebugMan.addDebugChannel(kMVDebugImage, "image", "Image decoders and renderers"); - DebugMan.addDebugChannel(kMVDebugScript, "script", "Script engine"); - DebugMan.addDebugChannel(kMVDebugSound, "sound", "Sound decoders"); - DebugMan.addDebugChannel(kMVDebugContainer, "container", "Containers"); -} - Common::Error MacVentureEngine::run() { debug("MacVenture::MacVentureEngine::init()"); initGraphics(kScreenWidth, kScreenHeight); diff --git a/engines/macventure/macventure.h b/engines/macventure/macventure.h index fc8ec3887ba..c20f82c370c 100644 --- a/engines/macventure/macventure.h +++ b/engines/macventure/macventure.h @@ -205,7 +205,6 @@ public: void setInitialFlags(); void setNewGameState(); - void initDebugChannels(); void reset(); void resetInternals(); void resetGui();