aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorMax Horn2009-01-30 04:42:30 +0000
committerMax Horn2009-01-30 04:42:30 +0000
commitde7c89e38143ccac34e5228d5591a2738f27a661 (patch)
tree5f383e7ab19e9aafa14477a8e28dc384491b6297 /gui
parent9861da62f049fcd3436df38ff06d8e8839dbfdab (diff)
downloadscummvm-rg350-de7c89e38143ccac34e5228d5591a2738f27a661.tar.gz
scummvm-rg350-de7c89e38143ccac34e5228d5591a2738f27a661.tar.bz2
scummvm-rg350-de7c89e38143ccac34e5228d5591a2738f27a661.zip
Some work on the 'special debug levels' aka 'engine debug levels' code
svn-id: r36139
Diffstat (limited to 'gui')
-rw-r--r--gui/debugger.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/gui/debugger.cpp b/gui/debugger.cpp
index 8ec7949ab2..39e07a28f3 100644
--- a/gui/debugger.cpp
+++ b/gui/debugger.cpp
@@ -406,7 +406,7 @@ bool Debugger::Cmd_Help(int argc, const char **argv) {
}
bool Debugger::Cmd_DebugFlagsList(int argc, const char **argv) {
- const Common::DebugLevelContainer &debugLevels = Common::listSpecialDebugLevels();
+ const Common::SpecialDebugLevelList &debugLevels = Common::listSpecialDebugLevels();
DebugPrintf("Engine debug levels:\n");
DebugPrintf("--------------------\n");
@@ -414,8 +414,10 @@ bool Debugger::Cmd_DebugFlagsList(int argc, const char **argv) {
DebugPrintf("No engine debug levels\n");
return true;
}
- for (Common::DebugLevelContainer::const_iterator i = debugLevels.begin(); i != debugLevels.end(); ++i) {
- DebugPrintf("'%s' - Description: %s\n", i->option.c_str(), i->description.c_str());
+ for (Common::SpecialDebugLevelList::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");
}
DebugPrintf("\n");
return true;