aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorMax Horn2004-12-27 21:54:20 +0000
committerMax Horn2004-12-27 21:54:20 +0000
commitd138a880bf8498ac6facc66ac4dbc9cddbd33891 (patch)
tree59005954d09d577a659678e14cd47ca9740dc614 /simon
parent2eb17ef32241618f41bede09eade8cac13d4bd05 (diff)
downloadscummvm-rg350-d138a880bf8498ac6facc66ac4dbc9cddbd33891.tar.gz
scummvm-rg350-d138a880bf8498ac6facc66ac4dbc9cddbd33891.tar.bz2
scummvm-rg350-d138a880bf8498ac6facc66ac4dbc9cddbd33891.zip
Fix for bug #1091748 (DIG: Starting new games takes a long time); turns out querying the debuglevel from the config-manager very often is too slow
svn-id: r16345
Diffstat (limited to 'simon')
-rw-r--r--simon/debugger.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/simon/debugger.cpp b/simon/debugger.cpp
index d498daf171..e0c35e991c 100644
--- a/simon/debugger.cpp
+++ b/simon/debugger.cpp
@@ -91,6 +91,7 @@ bool Debugger::Cmd_DebugLevel(int argc, const char **argv) {
} else { // set level
int level = atoi(argv[1]);
ConfMan.set("debuglevel", level, Common::ConfigManager::kTransientDomain);
+ gDebugLevel = ConfMan.getInt("debuglevel");
if (level > 0 && level < 10) {
_vm->_debugMode = true;
DebugPrintf("Debug level set to level %d\n", level);