aboutsummaryrefslogtreecommitdiff
path: root/gameDetector.cpp
diff options
context:
space:
mode:
authorJames Brown2002-04-26 14:13:39 +0000
committerJames Brown2002-04-26 14:13:39 +0000
commit965b96b4895f0a5ad203abd0d9b48cc438447b31 (patch)
tree9a4b3281658244abf176718c991e1b66eadcf258 /gameDetector.cpp
parentab2d1d03faa0e1d0f38a8972f85a778a2bbd9158 (diff)
downloadscummvm-rg350-965b96b4895f0a5ad203abd0d9b48cc438447b31.tar.gz
scummvm-rg350-965b96b4895f0a5ad203abd0d9b48cc438447b31.tar.bz2
scummvm-rg350-965b96b4895f0a5ad203abd0d9b48cc438447b31.zip
Add enhanced debugging patch.
svn-id: r4090
Diffstat (limited to 'gameDetector.cpp')
-rw-r--r--gameDetector.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/gameDetector.cpp b/gameDetector.cpp
index 81542ea043..03aba1b468 100644
--- a/gameDetector.cpp
+++ b/gameDetector.cpp
@@ -32,11 +32,11 @@
static const char USAGE_STRING[] =
"ScummVM - Scumm Interpreter\n"
"Syntax:\n"
- "\tscummvm [-v] [-d] [-n] [-b<num>] [-t<num>] [-s<num>] [-p<path>] [-m<num>] [-f] game\n"
+ "\tscummvm [-v] [-d[<num>]] [-n] [-b<num>] [-t<num>] [-s<num>] [-p<path>] [-m<num>] [-f] game\n"
"Flags:\n"
"\tv - show version info and exit\n"
"\tc<num> - use cdrom <num> for cd audio\n"
- "\td - enable debug output\n"
+ "\td[<num>]- enable debug output (level <num>)\n"
"\tn - no subtitles for speech\n"
"\tb<num> - start in room <num>\n"
"\tt<num> - set music tempo. Suggested: 1F0000\n"
@@ -83,7 +83,10 @@ void GameDetector::parseCommandLine(int argc, char **argv)
break;
case 'd':
_debugMode = true;
- break;
+ if (*(s+1) != '\0')
+ _debugLevel = atoi(s+1);
+ debug(1,"Debugmode (level %d) on", _debugLevel);
+ goto NextArg;
case 'n':
_noSubtitles = true;
break;