From 166ea5bcee36aaab30ea6b7764bdc9872fc2dcf2 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 31 Dec 2002 02:09:57 +0000 Subject: get rid of DUMP_SCRIPTS; in its place, added run time option '-u' to enabled script dumping svn-id: r6284 --- common/gameDetector.cpp | 8 +++++++- common/gameDetector.h | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp index 802a94e648..2df831395e 100644 --- a/common/gameDetector.cpp +++ b/common/gameDetector.cpp @@ -71,6 +71,7 @@ static const char USAGE_STRING[] = "\n" "\t-b - start in room \n" "\t-d[] - enable debug output (debug level [1])\n" + "\t-u - dump scripts\n" ; @@ -205,8 +206,9 @@ GameDetector::GameDetector() _amiga = false; _talkSpeed = 60; - _debugLevel = 0; _debugMode = 0; + _debugLevel = 0; + _dumpScripts = 0; _noSubtitles = false; _bootParam = 0; @@ -427,6 +429,10 @@ void GameDetector::parseCommandLine(int argc, char **argv) _gameTempo = strtol(option, 0, 0); g_config->set("tempo", option); break; + case 'u': + CHECK_OPTION(); + _dumpScripts = true; + break; case 'v': CHECK_OPTION(); printf("ScummVM " SCUMMVM_VERSION "\nBuilt on " __DATE__ " " diff --git a/common/gameDetector.h b/common/gameDetector.h index 98f6b8e086..bcf423d795 100644 --- a/common/gameDetector.h +++ b/common/gameDetector.h @@ -136,6 +136,7 @@ public: uint16 _talkSpeed; uint16 _debugMode; uint16 _debugLevel; + bool _dumpScripts; bool _noSubtitles; uint16 _bootParam; -- cgit v1.2.3