From de7c89e38143ccac34e5228d5591a2738f27a661 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 30 Jan 2009 04:42:30 +0000 Subject: Some work on the 'special debug levels' aka 'engine debug levels' code svn-id: r36139 --- gui/debugger.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gui') 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; -- cgit v1.2.3