diff options
author | James Brown | 2003-10-01 11:42:32 +0000 |
---|---|---|
committer | James Brown | 2003-10-01 11:42:32 +0000 |
commit | 9bab58179de824c5bfcbd4249dadc827a27e4d55 (patch) | |
tree | be98acfc097d25cc200a3844532cc17ce3e54659 /base | |
parent | eecdf67c636a8ff7a04819db4ffbc8717c278b52 (diff) | |
download | scummvm-rg350-9bab58179de824c5bfcbd4249dadc827a27e4d55.tar.gz scummvm-rg350-9bab58179de824c5bfcbd4249dadc827a27e4d55.tar.bz2 scummvm-rg350-9bab58179de824c5bfcbd4249dadc827a27e4d55.zip |
Revert kirbens change on 05Sep. Setting debugmode with debuglevel 0 is deliberate and intended behavior (for enabling engine specific 'debug options' without debug messages)
svn-id: r10519
Diffstat (limited to 'base')
-rw-r--r-- | base/gameDetector.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/base/gameDetector.cpp b/base/gameDetector.cpp index 65dba3bb71..728c1db9c5 100644 --- a/base/gameDetector.cpp +++ b/base/gameDetector.cpp @@ -84,7 +84,7 @@ static const char USAGE_STRING[] = "\t-z - Display list of games\n" "\n" "\t-b<num> - Pass number to the boot script (boot param)\n" - "\t-d[num] - Enable debug output (debug level [1])\n" + "\t-d[num] - Enable debug output (debug level [0])\n" "\t-u - Dump scripts\n" "\n" "\t--platform= - Specify version of game (amiga,atari-st,macintosh)\n" @@ -351,12 +351,14 @@ void GameDetector::parseCommandLine(int argc, char **argv) { g_config->setInt("cdrom", _cdrom); break; case 'd': + _debugMode = true; HANDLE_OPT_OPTION(); if (option != NULL) _debugLevel = atoi(option); if (_debugLevel) { - _debugMode = true; printf("Debuglevel (from command line): %d\n", _debugLevel); + } else { + printf("Debuglevel (from command line): 0 - Engine only\n"); } break; case 'e': |