diff options
author | D G Turner | 2014-05-12 00:56:20 +0100 |
---|---|---|
committer | D G Turner | 2014-05-12 00:56:20 +0100 |
commit | c81d0b680eb4f65ab23f02799de3b465a5758803 (patch) | |
tree | ac70290401f810b1f7fa4a004a27e02ce96117a2 | |
parent | b32ca0aaae88a7dbd3445a5611d4a59f0684a99b (diff) | |
download | scummvm-rg350-c81d0b680eb4f65ab23f02799de3b465a5758803.tar.gz scummvm-rg350-c81d0b680eb4f65ab23f02799de3b465a5758803.tar.bz2 scummvm-rg350-c81d0b680eb4f65ab23f02799de3b465a5758803.zip |
GUI: Minor further fixes to "debuglevel" command in Debugger base class.
-rw-r--r-- | gui/debugger.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gui/debugger.cpp b/gui/debugger.cpp index 832f49f0c9..b2ef193fa7 100644 --- a/gui/debugger.cpp +++ b/gui/debugger.cpp @@ -504,15 +504,20 @@ bool Debugger::Cmd_OpenLog(int argc, const char **argv) { bool Debugger::Cmd_DebugLevel(int argc, const char **argv) { if (argc == 1) { - DebugPrintf("Debugging is currently set at level %d\n", gDebugLevel); + if (gDebugLevel < 0) { + DebugPrintf("Debugging is disabled\n"); + } else { + DebugPrintf("Debugging is currently set at level %d\n", gDebugLevel); + } } else { // set level gDebugLevel = atoi(argv[1]); if (gDebugLevel >= 0 && gDebugLevel < 11) { DebugPrintf("Debug level set to level %d\n", gDebugLevel); } else if (gDebugLevel < 0) { DebugPrintf("Debugging is now disabled\n"); - } else + } else { DebugPrintf("Not a valid debug level (0 - 10)\n"); + } } return true; |