diff options
author | Max Horn | 2010-04-27 21:40:52 +0000 |
---|---|---|
committer | Max Horn | 2010-04-27 21:40:52 +0000 |
commit | 460d69e8855f849e2200c49b198936b1201e0c91 (patch) | |
tree | 31bfcaf8c2603d01c9d971fb3b40390e0798ec02 /gui | |
parent | 445dccd59bc77e760e649bae982d78f0c3ca6b04 (diff) | |
download | scummvm-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 'gui')
-rw-r--r-- | gui/debugger.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/debugger.cpp b/gui/debugger.cpp index fa1c12f28e..24c908716f 100644 --- a/gui/debugger.cpp +++ b/gui/debugger.cpp @@ -471,7 +471,7 @@ bool Debugger::Cmd_Help(int argc, const char **argv) { } bool Debugger::Cmd_DebugFlagsList(int argc, const char **argv) { - const Common::DebugChannelList &debugLevels = Common::listDebugChannels(); + const Common::DebugManager::DebugChannelList &debugLevels = DebugMan.listDebugChannels(); DebugPrintf("Engine debug levels:\n"); DebugPrintf("--------------------\n"); @@ -479,7 +479,7 @@ bool Debugger::Cmd_DebugFlagsList(int argc, const char **argv) { DebugPrintf("No engine debug levels\n"); return true; } - for (Common::DebugChannelList::const_iterator i = debugLevels.begin(); i != debugLevels.end(); ++i) { + for (Common::DebugManager::DebugChannelList::const_iterator i = debugLevels.begin(); i != debugLevels.end(); ++i) { DebugPrintf("%c%s - %s (%s)\n", i->enabled ? '+' : ' ', i->name.c_str(), i->description.c_str(), i->enabled ? "enabled" : "disabled"); @@ -492,7 +492,7 @@ bool Debugger::Cmd_DebugFlagEnable(int argc, const char **argv) { if (argc < 2) { DebugPrintf("debugflag_enable <flag>\n"); } else { - if (Common::enableDebugChannel(argv[1])) { + if (DebugMan.enableDebugChannel(argv[1])) { DebugPrintf("Enabled debug flag '%s'\n", argv[1]); } else { DebugPrintf("Failed to enable debug flag '%s'\n", argv[1]); @@ -505,7 +505,7 @@ bool Debugger::Cmd_DebugFlagDisable(int argc, const char **argv) { if (argc < 2) { DebugPrintf("debugflag_disable <flag>\n"); } else { - if (Common::disableDebugChannel(argv[1])) { + if (DebugMan.disableDebugChannel(argv[1])) { DebugPrintf("Disabled debug flag '%s'\n", argv[1]); } else { DebugPrintf("Failed to disable debug flag '%s'\n", argv[1]); |