aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/debugger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/scumm/debugger.cpp')
-rw-r--r--engines/scumm/debugger.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/scumm/debugger.cpp b/engines/scumm/debugger.cpp
index 0adc05d662..035f97350f 100644
--- a/engines/scumm/debugger.cpp
+++ b/engines/scumm/debugger.cpp
@@ -47,7 +47,7 @@ void debugC(int channel, const char *s, ...) {
// FIXME: Still spew all debug at -d9, for crashes in startup etc.
// Add setting from commandline ( / abstract channel interface)
- if (!Common::isDebugChannelEnabled(channel) && (gDebugLevel < 9))
+ if (!DebugMan.isDebugChannelEnabled(channel) && (gDebugLevel < 9))
return;
va_start(va, s);
@@ -505,12 +505,12 @@ bool ScummDebugger::Cmd_Object(int argc, const char **argv) {
}
bool ScummDebugger::Cmd_Debug(int argc, const char **argv) {
- const Common::DebugChannelList &lvls = Common::listDebugChannels();
+ const Common::DebugManager::DebugChannelList &lvls = DebugMan.listDebugChannels();
// No parameters given: Print out a list of all channels and their status
if (argc <= 1) {
DebugPrintf("Available debug channels:\n");
- for (Common::DebugChannelList::const_iterator i = lvls.begin(); i != lvls.end(); ++i) {
+ for (Common::DebugManager::DebugChannelList::const_iterator i = lvls.begin(); i != lvls.end(); ++i) {
DebugPrintf("%c%s - %s (%s)\n", i->enabled ? '+' : ' ',
i->name.c_str(), i->description.c_str(),
i->enabled ? "enabled" : "disabled");
@@ -521,9 +521,9 @@ bool ScummDebugger::Cmd_Debug(int argc, const char **argv) {
// Enable or disable channel?
bool result = false;
if (argv[1][0] == '+') {
- result = Common::enableDebugChannel(argv[1] + 1);
+ result = DebugMan.enableDebugChannel(argv[1] + 1);
} else if (argv[1][0] == '-') {
- result = Common::disableDebugChannel(argv[1] + 1);
+ result = DebugMan.disableDebugChannel(argv[1] + 1);
}
if (result) {