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 /scumm/resource.cpp | |
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 'scumm/resource.cpp')
-rw-r--r-- | scumm/resource.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp index 5a07623173..9788207ff3 100644 --- a/scumm/resource.cpp +++ b/scumm/resource.cpp @@ -585,12 +585,10 @@ int Scumm::loadResource(int type, int idx) } _fileHandle.read(createResource(type, idx, size), size); - /* dump the resource */ -#ifdef DUMP_SCRIPTS - if (type == rtScript) { + // dump the resource if requested + if (_dumpScripts && type == rtScript) { dumpResource("script-", idx, getResourceAddress(rtScript, idx)); } -#endif if (!_fileHandle.ioFailed()) { return 1; |