aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorMax Horn2003-10-13 18:03:13 +0000
committerMax Horn2003-10-13 18:03:13 +0000
commit5fb358365c9cde4baf2b84b5198ecf8af6610862 (patch)
tree4ceeb7104cad8a9d1cb7803c4e441625d22153ee /base
parentcf47fb1c691676f4f415ca37e6a69a2dfe394aa3 (diff)
downloadscummvm-rg350-5fb358365c9cde4baf2b84b5198ecf8af6610862.tar.gz
scummvm-rg350-5fb358365c9cde4baf2b84b5198ecf8af6610862.tar.bz2
scummvm-rg350-5fb358365c9cde4baf2b84b5198ecf8af6610862.zip
set _debugMode to true if a non-zero debug level has been specified in the config
svn-id: r10782
Diffstat (limited to 'base')
-rw-r--r--base/gameDetector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/gameDetector.cpp b/base/gameDetector.cpp
index c8a1c9088c..00902227c8 100644
--- a/base/gameDetector.cpp
+++ b/base/gameDetector.cpp
@@ -221,7 +221,7 @@ GameDetector::GameDetector() {
ConfMan.registerDefault("joystick_num", -1);
ConfMan.registerDefault("confirm_exit", false);
- _debugMode = false;
+ _debugMode = (ConfMan.getInt("debuglevel") > 0);
_dumpScripts = false;
_midi_driver = MD_AUTO;
@@ -478,6 +478,7 @@ ShowHelpAndExit:
void GameDetector::setTarget(const String &name) {
_targetName = name;
ConfMan.setActiveDomain(name);
+ _debugMode = (ConfMan.getInt("debuglevel") > 0);
}
int GameDetector::parseGraphicsMode(const String &str) {