diff options
author | Jonathan Gray | 2003-10-14 06:02:38 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-10-14 06:02:38 +0000 |
commit | 15eb5a91b0386f82816329f5808bc8b7500fec33 (patch) | |
tree | 66ba308511ce890d44ae5459a5bbf9e50d8d52df /base | |
parent | 08b2020543e37163c83d91094cb26113263fd34a (diff) | |
download | scummvm-rg350-15eb5a91b0386f82816329f5808bc8b7500fec33.tar.gz scummvm-rg350-15eb5a91b0386f82816329f5808bc8b7500fec33.tar.bz2 scummvm-rg350-15eb5a91b0386f82816329f5808bc8b7500fec33.zip |
zero is a valid debug level, also change incorrect string; 0 is game only, not engine only. Maybe the game and engine debug levels should be seperated? This only applies to SCUMM as no other engine maintains its own debug level as far as I know.
svn-id: r10786
Diffstat (limited to 'base')
-rw-r--r-- | base/gameDetector.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/gameDetector.cpp b/base/gameDetector.cpp index 00902227c8..2b85fa998c 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 = (ConfMan.getInt("debuglevel") > 0); + _debugMode = (ConfMan.getInt("debuglevel") >= 0); _dumpScripts = false; _midi_driver = MD_AUTO; @@ -318,7 +318,7 @@ void GameDetector::parseCommandLine(int argc, char **argv) { if (ConfMan.getInt("debuglevel")) { printf("Debuglevel (from command line): %d\n", ConfMan.getInt("debuglevel")); } else { - printf("Debuglevel (from command line): 0 - Engine only\n"); + printf("Debuglevel (from command line): 0 - Game only\n"); } break; case 'e': @@ -478,7 +478,7 @@ ShowHelpAndExit: void GameDetector::setTarget(const String &name) { _targetName = name; ConfMan.setActiveDomain(name); - _debugMode = (ConfMan.getInt("debuglevel") > 0); + _debugMode = (ConfMan.getInt("debuglevel") >= 0); } int GameDetector::parseGraphicsMode(const String &str) { |