DIRECTOR: More debug output on resource loading

This commit is contained in:
Eugene Sandulenko 2016-10-30 14:49:16 -07:00
parent ec76eaec80
commit 31fd315c90

View File

@ -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++) {