Skip to content

Commit

Permalink
DIRECTOR: More debug output on resource loading
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Oct 30, 2016
1 parent ec76eae commit 31fd315
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion engines/director/archive.cpp
Expand Up @@ -21,6 +21,7 @@
*/

#include "director/archive.h"
#include "director/director.h"

#include "common/debug.h"
#include "common/macresman.h"
Expand Down Expand Up @@ -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*
Expand All @@ -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++) {
Expand Down

0 comments on commit 31fd315

Please sign in to comment.