aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorMax Horn2010-04-27 21:40:52 +0000
committerMax Horn2010-04-27 21:40:52 +0000
commit460d69e8855f849e2200c49b198936b1201e0c91 (patch)
tree31bfcaf8c2603d01c9d971fb3b40390e0798ec02 /engines/agi
parent445dccd59bc77e760e649bae982d78f0c3ca6b04 (diff)
downloadscummvm-rg350-460d69e8855f849e2200c49b198936b1201e0c91.tar.gz
scummvm-rg350-460d69e8855f849e2200c49b198936b1201e0c91.tar.bz2
scummvm-rg350-460d69e8855f849e2200c49b198936b1201e0c91.zip
COMMON: Move DebugChannel stuff into a new DebugMan singleton
svn-id: r48821
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/agi.cpp20
-rw-r--r--engines/agi/preagi.cpp20
2 files changed, 20 insertions, 20 deletions
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));