aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorD G Turner2014-05-13 19:39:47 +0100
committerD G Turner2014-05-13 19:39:47 +0100
commitbac58f3e1878bed442766bc03c4f43adb1cb05de (patch)
treeb52e32c4050eb5f546f150968b3e626a4938062b /gui
parente065b24d56bac1e6c929c8b9b03553055a285878 (diff)
downloadscummvm-rg350-bac58f3e1878bed442766bc03c4f43adb1cb05de.tar.gz
scummvm-rg350-bac58f3e1878bed442766bc03c4f43adb1cb05de.tar.bz2
scummvm-rg350-bac58f3e1878bed442766bc03c4f43adb1cb05de.zip
GUI: Clarify "debuglevel" command output in Debugger base class.
This should make it clear that -1 is used for disable.
Diffstat (limited to 'gui')
-rw-r--r--gui/debugger.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/gui/debugger.cpp b/gui/debugger.cpp
index b2ef193fa7..da342e26e9 100644
--- a/gui/debugger.cpp
+++ b/gui/debugger.cpp
@@ -503,12 +503,8 @@ bool Debugger::Cmd_OpenLog(int argc, const char **argv) {
bool Debugger::Cmd_DebugLevel(int argc, const char **argv) {
- if (argc == 1) {
- if (gDebugLevel < 0) {
- DebugPrintf("Debugging is disabled\n");
- } else {
- DebugPrintf("Debugging is currently set at level %d\n", gDebugLevel);
- }
+ if (argc == 1) { // print level
+ DebugPrintf("Debugging is currently %s (set at level %d)\n", (gDebugLevel >= 0) ? "enabled" : "disabled", gDebugLevel);
} else { // set level
gDebugLevel = atoi(argv[1]);
if (gDebugLevel >= 0 && gDebugLevel < 11) {
@@ -516,7 +512,7 @@ bool Debugger::Cmd_DebugLevel(int argc, const char **argv) {
} else if (gDebugLevel < 0) {
DebugPrintf("Debugging is now disabled\n");
} else {
- DebugPrintf("Not a valid debug level (0 - 10)\n");
+ DebugPrintf("Invalid debug level value (0 to 10 or -1 to disable)\n");
}
}