diff options
| author | Max Horn | 2002-12-31 02:09:57 +0000 |
|---|---|---|
| committer | Max Horn | 2002-12-31 02:09:57 +0000 |
| commit | 166ea5bcee36aaab30ea6b7764bdc9872fc2dcf2 (patch) | |
| tree | 50a5201e6cc80a9a7480c797b49458cd46d27b97 /common | |
| parent | 1ce31266a981a94cdcdbf5831d0d02720b56ca71 (diff) | |
| download | scummvm-rg350-166ea5bcee36aaab30ea6b7764bdc9872fc2dcf2.tar.gz scummvm-rg350-166ea5bcee36aaab30ea6b7764bdc9872fc2dcf2.tar.bz2 scummvm-rg350-166ea5bcee36aaab30ea6b7764bdc9872fc2dcf2.zip | |
get rid of DUMP_SCRIPTS; in its place, added run time option '-u' to enabled script dumping
svn-id: r6284
Diffstat (limited to 'common')
| -rw-r--r-- | common/gameDetector.cpp | 8 | ||||
| -rw-r--r-- | common/gameDetector.h | 1 |
2 files changed, 8 insertions, 1 deletions
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<num> - start in room <num>\n" "\t-d[<num>] - 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; |
