diff options
author | Eugene Sandulenko | 2016-10-31 09:42:26 -0700 |
---|---|---|
committer | Eugene Sandulenko | 2016-10-31 09:42:43 -0700 |
commit | 953efc35a786b4eb0930cd9aa0dc5f0ac1524df3 (patch) | |
tree | 63bad365fd827e706a7e1a45d6860dd19ee590fe | |
parent | 28345d7eb3ed14a25e72160ab17f4d17c57b2756 (diff) | |
download | scummvm-rg350-953efc35a786b4eb0930cd9aa0dc5f0ac1524df3.tar.gz scummvm-rg350-953efc35a786b4eb0930cd9aa0dc5f0ac1524df3.tar.bz2 scummvm-rg350-953efc35a786b4eb0930cd9aa0dc5f0ac1524df3.zip |
DIRECTOR: More debug ouptut to RIFX parsing
-rw-r--r-- | engines/director/archive.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/engines/director/archive.cpp b/engines/director/archive.cpp index 303386a5e3..b3e2426c0e 100644 --- a/engines/director/archive.cpp +++ b/engines/director/archive.cpp @@ -415,20 +415,25 @@ 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); + debugCN(2, kDebugLoading, "CAS*: %d [", casEntries.size()); + for (uint32 i = 0; i < casEntries.size(); i++) { casEntries[i] = casStream.readUint32(); - debugC(2, kDebugLoading, "CAS*: %d", casEntries[i]); + debugCN(2, kDebugLoading, "%d ", casEntries[i]); } + debugC(2, kDebugLoading, "]"); } // Parse the KEY* Common::SeekableSubReadStreamEndian keyStream(stream, keyRes->offset + 8, keyRes->offset + 8 + keyRes->size, _isBigEndian, DisposeAfterUse::NO); - /*uint16 unk1 = */ keyStream.readUint16(); - /*uint16 unk2 = */ keyStream.readUint16(); - /*uint32 unk3 = */ keyStream.readUint32(); + uint16 unk1 = keyStream.readUint16(); + uint16 unk2 = keyStream.readUint16(); + uint32 unk3 = keyStream.readUint32(); uint32 keyCount = keyStream.readUint32(); + debugC(2, kDebugLoading, "KEY*: unk1: %d unk2: %d unk3: %d keyCount: %d", unk1, unk2, unk3, keyCount); + for (uint32 i = 0; i < keyCount; i++) { uint32 index = keyStream.readUint32(); uint32 id = keyStream.readUint32(); |