From 5fb358365c9cde4baf2b84b5198ecf8af6610862 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 13 Oct 2003 18:03:13 +0000 Subject: set _debugMode to true if a non-zero debug level has been specified in the config svn-id: r10782 --- base/gameDetector.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'base') 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) { -- cgit v1.2.3