aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/director/archive.cpp8
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++) {