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
This commit is contained in:
parent
2eb17ef322
commit
d138a880bf
6 changed files with 59 additions and 49 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue