From 460d69e8855f849e2200c49b198936b1201e0c91 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 27 Apr 2010 21:40:52 +0000 Subject: COMMON: Move DebugChannel stuff into a new DebugMan singleton svn-id: r48821 --- engines/draci/draci.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'engines/draci/draci.cpp') diff --git a/engines/draci/draci.cpp b/engines/draci/draci.cpp index 882b845f08..40659589b6 100644 --- a/engines/draci/draci.cpp +++ b/engines/draci/draci.cpp @@ -82,13 +82,13 @@ DraciEngine::DraciEngine(OSystem *syst, const ADGameDescription *gameDesc) //SearchMan.addSubDirectoryMatching(_gameDataDir, "sound"); // Here is the right place to set up the engine specific debug levels - Common::addDebugChannel(kDraciGeneralDebugLevel, "general", "Draci general debug info"); - Common::addDebugChannel(kDraciBytecodeDebugLevel, "bytecode", "GPL bytecode instructions"); - Common::addDebugChannel(kDraciArchiverDebugLevel, "archiver", "BAR archiver debug info"); - Common::addDebugChannel(kDraciLogicDebugLevel, "logic", "Game logic debug info"); - Common::addDebugChannel(kDraciAnimationDebugLevel, "animation", "Animation debug info"); - Common::addDebugChannel(kDraciSoundDebugLevel, "sound", "Sound debug info"); - Common::addDebugChannel(kDraciWalkingDebugLevel, "walking", "Walking debug info"); + DebugMan.addDebugChannel(kDraciGeneralDebugLevel, "general", "Draci general debug info"); + DebugMan.addDebugChannel(kDraciBytecodeDebugLevel, "bytecode", "GPL bytecode instructions"); + DebugMan.addDebugChannel(kDraciArchiverDebugLevel, "archiver", "BAR archiver debug info"); + DebugMan.addDebugChannel(kDraciLogicDebugLevel, "logic", "Game logic debug info"); + DebugMan.addDebugChannel(kDraciAnimationDebugLevel, "animation", "Animation debug info"); + DebugMan.addDebugChannel(kDraciSoundDebugLevel, "sound", "Sound debug info"); + DebugMan.addDebugChannel(kDraciWalkingDebugLevel, "walking", "Walking debug info"); // Don't forget to register your random source g_eventRec.registerRandomSource(_rnd, "draci"); @@ -349,7 +349,7 @@ DraciEngine::~DraciEngine() { delete _dubbingArchive; // Remove all of our debug levels here - Common::clearAllDebugChannels(); + DebugMan.clearAllDebugChannels(); } Common::Error DraciEngine::run() { -- cgit v1.2.3