aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2005-04-22 20:04:25 +0000
committerMax Horn2005-04-22 20:04:25 +0000
commit88d0b6cc44d81d982ac30b734a8af42f5efd6a51 (patch)
tree43b3a256ac81ff65ffbc9ef7f6e074d2179bb030 /scumm
parentfa224cbb3ffcf968800de3069bea6c068c917b93 (diff)
downloadscummvm-rg350-88d0b6cc44d81d982ac30b734a8af42f5efd6a51.tar.gz
scummvm-rg350-88d0b6cc44d81d982ac30b734a8af42f5efd6a51.tar.bz2
scummvm-rg350-88d0b6cc44d81d982ac30b734a8af42f5efd6a51.zip
Only modify gDebugLevel, not the transient config
svn-id: r17754
Diffstat (limited to 'scumm')
-rw-r--r--scumm/debugger.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp
index 008c991b03..a26d78e7da 100644
--- a/scumm/debugger.cpp
+++ b/scumm/debugger.cpp
@@ -597,13 +597,11 @@ bool ScummDebugger::Cmd_DebugLevel(int argc, const char **argv) {
else
DebugPrintf("Debugging is currently set at level %d\n", ConfMan.getInt("debuglevel"));
} else { // set level
- int level = atoi(argv[1]);
- ConfMan.set("debuglevel", level, Common::ConfigManager::kTransientDomain);
- gDebugLevel = ConfMan.getInt("debuglevel");
- if (level > 0) {
+ gDebugLevel = atoi(argv[1]);
+ if (gDebugLevel > 0) {
_vm->_debugMode = true;
- DebugPrintf("Debug level set to level %d\n", level);
- } else if (level == 0) {
+ DebugPrintf("Debug level set to level %d\n", gDebugLevel);
+ } else if (gDebugLevel == 0) {
_vm->_debugMode = false;
DebugPrintf("Debugging is now disabled\n");
} else