diff options
author | Travis Howell | 2003-07-05 08:42:50 +0000 |
---|---|---|
committer | Travis Howell | 2003-07-05 08:42:50 +0000 |
commit | c1002b4ad22d6bff69291fff17c44c1386af32ab (patch) | |
tree | 2efabd42d62122c37a386dcb5d93d3d4c4f78f1f | |
parent | 1ed639aedb393d1a9b8923230078ccd28f989576 (diff) | |
download | scummvm-rg350-c1002b4ad22d6bff69291fff17c44c1386af32ab.tar.gz scummvm-rg350-c1002b4ad22d6bff69291fff17c44c1386af32ab.tar.bz2 scummvm-rg350-c1002b4ad22d6bff69291fff17c44c1386af32ab.zip |
Fix multiple debug level messages, when debug level is set in the config file.
svn-id: r8764
-rw-r--r-- | common/gameDetector.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp index 312102aa58..ef3b5c1384 100644 --- a/common/gameDetector.cpp +++ b/common/gameDetector.cpp @@ -290,10 +290,8 @@ void GameDetector::updateconfig() { _sfx_volume = g_config->getInt("sfx_volume", _sfx_volume); _debugLevel = g_config->getInt("debuglevel", _debugLevel); - if (_debugLevel > 0) { + if (_debugLevel > 0) _debugMode = true; - debug(1, "Debuglevel (from config): %d", _debugLevel); - } // We use strtol for the tempo to allow it to be specified in hex. if ((val = g_config->get("tempo"))) @@ -530,6 +528,8 @@ void GameDetector::setGame(const String &name) { g_config->delete_domain ("_COMMAND_LINE"); g_config->delete_domain ("_USER_OVERRIDES"); g_config->set_domain(name); + if (_debugMode) + debug(1, "Debuglevel (from config): %d", _debugLevel); } int GameDetector::parseGraphicsMode(const char *s) { |