From 965b96b4895f0a5ad203abd0d9b48cc438447b31 Mon Sep 17 00:00:00 2001 From: James Brown Date: Fri, 26 Apr 2002 14:13:39 +0000 Subject: Add enhanced debugging patch. svn-id: r4090 --- gameDetector.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gameDetector.cpp') 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] [-t] [-s] [-p] [-m] [-f] game\n" + "\tscummvm [-v] [-d[]] [-n] [-b] [-t] [-s] [-p] [-m] [-f] game\n" "Flags:\n" "\tv - show version info and exit\n" "\tc - use cdrom for cd audio\n" - "\td - enable debug output\n" + "\td[]- enable debug output (level )\n" "\tn - no subtitles for speech\n" "\tb - start in room \n" "\tt - 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; -- cgit v1.2.3