diff options
author | Eugene Sandulenko | 2016-10-30 14:49:16 -0700 |
---|---|---|
committer | Eugene Sandulenko | 2016-10-30 14:49:39 -0700 |
commit | 31fd315c90b78cde3fe3e3e6ee7c381d7918f340 (patch) | |
tree | f0bbfadff9d778b734e80d286f58db732f9a68c3 /engines | |
parent | ec76eaec802835d76400b6753b54314ecd7857ff (diff) | |
download | scummvm-rg350-31fd315c90b78cde3fe3e3e6ee7c381d7918f340.tar.gz scummvm-rg350-31fd315c90b78cde3fe3e3e6ee7c381d7918f340.tar.bz2 scummvm-rg350-31fd315c90b78cde3fe3e3e6ee7c381d7918f340.zip |
DIRECTOR: More debug output on resource loading
Diffstat (limited to 'engines')
-rw-r--r-- | engines/director/archive.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/director/archive.cpp b/engines/director/archive.cpp index 53c5243458..303386a5e3 100644 --- a/engines/director/archive.cpp +++ b/engines/director/archive.cpp @@ -21,6 +21,7 @@ */ #include "director/archive.h" +#include "director/director.h" #include "common/debug.h" #include "common/macresman.h" @@ -414,8 +415,11 @@ bool RIFXArchive::openStream(Common::SeekableReadStream *stream, uint32 startOff Common::SeekableSubReadStreamEndian casStream(stream, casRes->offset + 8, casRes->offset + 8 + casRes->size, _isBigEndian, DisposeAfterUse::NO); casEntries.resize(casRes->size / 4); - for (uint32 i = 0; i < casEntries.size(); i++) + for (uint32 i = 0; i < casEntries.size(); i++) { casEntries[i] = casStream.readUint32(); + + debugC(2, kDebugLoading, "CAS*: %d", casEntries[i]); + } } // Parse the KEY* @@ -430,6 +434,8 @@ bool RIFXArchive::openStream(Common::SeekableReadStream *stream, uint32 startOff uint32 id = keyStream.readUint32(); uint32 resTag = keyStream.readUint32(); + debugC(2, kDebugLoading, "KEY*: index: %d id: %d resTag: %s", index, id, tag2str(resTag)); + // Handle CAS*/CASt nonsense if (resTag == MKTAG('C', 'A', 'S', 't')) { for (uint32 j = 0; j < casEntries.size(); j++) { |