aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorMax Horn2009-01-30 05:10:24 +0000
committerMax Horn2009-01-30 05:10:24 +0000
commit7cb437b56f95bff06b0c79be93cd619b95662346 (patch)
tree6c466852a68c135a92ed7abb816c358b0042c57c /engines/scumm
parent7b50c293e6c509142e204e1aa11d51204cda9073 (diff)
downloadscummvm-rg350-7cb437b56f95bff06b0c79be93cd619b95662346.tar.gz
scummvm-rg350-7cb437b56f95bff06b0c79be93cd619b95662346.tar.bz2
scummvm-rg350-7cb437b56f95bff06b0c79be93cd619b95662346.zip
Renamed SpecialDebugLevel to DebugChannel
svn-id: r36142
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/debugger.cpp10
-rw-r--r--engines/scumm/scumm.cpp4
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/scumm/debugger.cpp b/engines/scumm/debugger.cpp
index fbffffb9e0..f5dde54354 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::isSpecialDebugLevelEnabled(channel) && (gDebugLevel < 9))
+ if (!Common::isDebugChannelEnabled(channel) && (gDebugLevel < 9))
return;
va_start(va, s);
@@ -498,12 +498,12 @@ bool ScummDebugger::Cmd_Object(int argc, const char **argv) {
}
bool ScummDebugger::Cmd_Debug(int argc, const char **argv) {
- const Common::SpecialDebugLevelList &lvls = Common::listSpecialDebugLevels();
+ const Common::DebugChannelList &lvls = Common::listDebugChannels();
// No parameters given: Print out a list of all channels and their status
if (argc <= 1) {
DebugPrintf("Available debug channels: ");
- for (Common::SpecialDebugLevelList::iterator i = lvls.begin(); i != lvls.end(); ++i) {
+ for (Common::DebugChannelList::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");
@@ -514,9 +514,9 @@ bool ScummDebugger::Cmd_Debug(int argc, const char **argv) {
// Enable or disable channel?
bool result = false;
if (argv[1][0] == '+') {
- result = Common::enableSpecialDebugLevel(argv[1] + 1);
+ result = Common::enableDebugChannel(argv[1] + 1);
} else if (argv[1][0] == '-') {
- result = Common::disableSpecialDebugLevel(argv[1] + 1);
+ result = Common::disableDebugChannel(argv[1] + 1);
}
if (result) {
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp
index 78329dd3e4..01e2947712 100644
--- a/engines/scumm/scumm.cpp
+++ b/engines/scumm/scumm.cpp
@@ -536,14 +536,14 @@ ScummEngine::ScummEngine(OSystem *syst, const DetectorResult &dr)
// Add debug levels
for (int i = 0; i < ARRAYSIZE(debugChannels); ++i)
- Common::addSpecialDebugLevel(debugChannels[i].flag, debugChannels[i].channel, debugChannels[i].desc);
+ Common::addDebugChannel(debugChannels[i].flag, debugChannels[i].channel, debugChannels[i].desc);
syst->getEventManager()->registerRandomSource(_rnd, "scumm");
}
ScummEngine::~ScummEngine() {
- Common::clearAllSpecialDebugLevels();
+ Common::clearAllDebugChannels();
if (_musicEngine) {
_musicEngine->terminate();