diff options
author | Eugene Sandulenko | 2016-10-27 07:36:35 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-10-27 16:48:17 +0200 |
commit | ba9eeded271cba1ae68d39e6bb7d81a32c51f73c (patch) | |
tree | 90e8345030048e4fc51abea3fd7d7f72df490612 /engines | |
parent | 7564d47e993584bb62fd4cf1f4638d15785fb4d4 (diff) | |
download | scummvm-rg350-ba9eeded271cba1ae68d39e6bb7d81a32c51f73c.tar.gz scummvm-rg350-ba9eeded271cba1ae68d39e6bb7d81a32c51f73c.tar.bz2 scummvm-rg350-ba9eeded271cba1ae68d39e6bb7d81a32c51f73c.zip |
DIRECTOR: More debug output to RIFX archive reader
Diffstat (limited to 'engines')
-rw-r--r-- | engines/director/archive.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/engines/director/archive.cpp b/engines/director/archive.cpp index 829764513f..a96ffa908c 100644 --- a/engines/director/archive.cpp +++ b/engines/director/archive.cpp @@ -371,11 +371,12 @@ bool RIFXArchive::openStream(Common::SeekableReadStream *stream, uint32 startOff uint32 tag = subStream.readUint32(); uint32 size = subStream.readUint32(); uint32 offset = subStream.readUint32(); - /*uint16 flags = */ subStream.readUint16(); - /*uint16 unk1 = */ subStream.readUint16(); - /*uint32 unk2 = */ subStream.readUint32(); + uint16 flags = subStream.readUint16(); + uint16 unk1 = subStream.readUint16(); + uint32 unk2 = subStream.readUint32(); - debug(3, "Found RIFX resource index %d: '%s', %d @ 0x%08x", i, tag2str(tag), size, offset); + debug(3, "Found RIFX resource index %d: '%s', %d @ 0x%08x (%d), flags: %x unk1: %x unk2: %x", + i, tag2str(tag), size, offset, offset, flags, unk1, unk2); Resource res; res.offset = offset; @@ -438,7 +439,7 @@ bool RIFXArchive::openStream(Common::SeekableReadStream *stream, uint32 startOff } const Resource &res = resources[index]; - debug(3, "Found RIFX resource: '%s' 0x%04x, %d @ 0x%08x", tag2str(resTag), id, res.size, res.offset); + debug(3, "Found RIFX resource: '%s' 0x%04x, %d @ 0x%08x (%d)", tag2str(resTag), id, res.size, res.offset, res.offset); _types[resTag][id] = res; } |