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/agi/agi.cpp | 20 ++++++++++---------- engines/agi/preagi.cpp | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) (limited to 'engines/agi') diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index c7b45871b7..2a67b5a16f 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -515,16 +515,16 @@ AgiEngine::AgiEngine(OSystem *syst, const AGIGameDescription *gameDesc) : AgiBas _rnd = new Common::RandomSource(); g_eventRec.registerRandomSource(*_rnd, "agi"); - Common::addDebugChannel(kDebugLevelMain, "Main", "Generic debug level"); - Common::addDebugChannel(kDebugLevelResources, "Resources", "Resources debugging"); - Common::addDebugChannel(kDebugLevelSprites, "Sprites", "Sprites debugging"); - Common::addDebugChannel(kDebugLevelInventory, "Inventory", "Inventory debugging"); - Common::addDebugChannel(kDebugLevelInput, "Input", "Input events debugging"); - Common::addDebugChannel(kDebugLevelMenu, "Menu", "Menu debugging"); - Common::addDebugChannel(kDebugLevelScripts, "Scripts", "Scripts debugging"); - Common::addDebugChannel(kDebugLevelSound, "Sound", "Sound debugging"); - Common::addDebugChannel(kDebugLevelText, "Text", "Text output debugging"); - Common::addDebugChannel(kDebugLevelSavegame, "Savegame", "Saving & restoring game debugging"); + DebugMan.addDebugChannel(kDebugLevelMain, "Main", "Generic debug level"); + DebugMan.addDebugChannel(kDebugLevelResources, "Resources", "Resources debugging"); + DebugMan.addDebugChannel(kDebugLevelSprites, "Sprites", "Sprites debugging"); + DebugMan.addDebugChannel(kDebugLevelInventory, "Inventory", "Inventory debugging"); + DebugMan.addDebugChannel(kDebugLevelInput, "Input", "Input events debugging"); + DebugMan.addDebugChannel(kDebugLevelMenu, "Menu", "Menu debugging"); + DebugMan.addDebugChannel(kDebugLevelScripts, "Scripts", "Scripts debugging"); + DebugMan.addDebugChannel(kDebugLevelSound, "Sound", "Sound debugging"); + DebugMan.addDebugChannel(kDebugLevelText, "Text", "Text output debugging"); + DebugMan.addDebugChannel(kDebugLevelSavegame, "Savegame", "Saving & restoring game debugging"); memset(&_game, 0, sizeof(struct AgiGame)); diff --git a/engines/agi/preagi.cpp b/engines/agi/preagi.cpp index d455bc9dc4..76fe901705 100644 --- a/engines/agi/preagi.cpp +++ b/engines/agi/preagi.cpp @@ -46,16 +46,16 @@ PreAgiEngine::PreAgiEngine(OSystem *syst, const AGIGameDescription *gameDesc) : _rnd = new Common::RandomSource(); - Common::addDebugChannel(kDebugLevelMain, "Main", "Generic debug level"); - Common::addDebugChannel(kDebugLevelResources, "Resources", "Resources debugging"); - Common::addDebugChannel(kDebugLevelSprites, "Sprites", "Sprites debugging"); - Common::addDebugChannel(kDebugLevelInventory, "Inventory", "Inventory debugging"); - Common::addDebugChannel(kDebugLevelInput, "Input", "Input events debugging"); - Common::addDebugChannel(kDebugLevelMenu, "Menu", "Menu debugging"); - Common::addDebugChannel(kDebugLevelScripts, "Scripts", "Scripts debugging"); - Common::addDebugChannel(kDebugLevelSound, "Sound", "Sound debugging"); - Common::addDebugChannel(kDebugLevelText, "Text", "Text output debugging"); - Common::addDebugChannel(kDebugLevelSavegame, "Savegame", "Saving & restoring game debugging"); + DebugMan.addDebugChannel(kDebugLevelMain, "Main", "Generic debug level"); + DebugMan.addDebugChannel(kDebugLevelResources, "Resources", "Resources debugging"); + DebugMan.addDebugChannel(kDebugLevelSprites, "Sprites", "Sprites debugging"); + DebugMan.addDebugChannel(kDebugLevelInventory, "Inventory", "Inventory debugging"); + DebugMan.addDebugChannel(kDebugLevelInput, "Input", "Input events debugging"); + DebugMan.addDebugChannel(kDebugLevelMenu, "Menu", "Menu debugging"); + DebugMan.addDebugChannel(kDebugLevelScripts, "Scripts", "Scripts debugging"); + DebugMan.addDebugChannel(kDebugLevelSound, "Sound", "Sound debugging"); + DebugMan.addDebugChannel(kDebugLevelText, "Text", "Text output debugging"); + DebugMan.addDebugChannel(kDebugLevelSavegame, "Savegame", "Saving & restoring game debugging"); memset(&_game, 0, sizeof(struct AgiGame)); memset(&_debug, 0, sizeof(struct AgiDebug)); -- cgit v1.2.3