aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2014-06-05 16:39:35 +0200
committerJohannes Schickel2014-06-05 16:40:42 +0200
commit10c5547de3fa6c5125a9f969a18e80bf05d4cc2a (patch)
treed7a96fe8f8b9d34936740d94cafc903d470f070a
parent960e16009c634e4060ffd892b19834b49ddfcbe9 (diff)
downloadscummvm-rg350-10c5547de3fa6c5125a9f969a18e80bf05d4cc2a.tar.gz
scummvm-rg350-10c5547de3fa6c5125a9f969a18e80bf05d4cc2a.tar.bz2
scummvm-rg350-10c5547de3fa6c5125a9f969a18e80bf05d4cc2a.zip
GUI: Allow any cased version of 'all' to toggle all debug flags.
This makes it consistent with our matching rules when enabling other debug flags.
-rw-r--r--gui/debugger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/debugger.cpp b/gui/debugger.cpp
index 21d49774af..dcdc18d7b9 100644
--- a/gui/debugger.cpp
+++ b/gui/debugger.cpp
@@ -544,7 +544,7 @@ bool Debugger::cmdDebugFlagEnable(int argc, const char **argv) {
if (argc < 2) {
debugPrintf("debugflag_enable [<flag> | all]\n");
} else {
- if (Common::String(argv[1]) == "all") {
+ if (!scumm_stricmp(argv[1], "all")) {
debugPrintf("Enabled all debug flags\n");
DebugMan.enableAllDebugChannels();
} else if (DebugMan.enableDebugChannel(argv[1])) {
@@ -560,7 +560,7 @@ bool Debugger::cmdDebugFlagDisable(int argc, const char **argv) {
if (argc < 2) {
debugPrintf("debugflag_disable [<flag> | all]\n");
} else {
- if (Common::String(argv[1]) == "all") {
+ if (!scumm_stricmp(argv[1], "all")) {
debugPrintf("Disabled all debug flags\n");
DebugMan.disableAllDebugChannels();
} else if (DebugMan.disableDebugChannel(argv[1])) {