DIRECTOR: Add v5 Mac data fork parsing

This commit is contained in:
Matthew Hoops 2012-11-14 22:14:26 -05:00 committed by Eugene Sandulenko
parent d870127ddb
commit bba8bb4c33

View File

@ -166,9 +166,9 @@ void DirectorEngine::loadMac() {
// First we need to detect PPC vs. 68k
uint32 tag = dataFork->readUint32LE();
uint32 tag = dataFork->readUint32BE();
if (tag == MKTAG('P', 'J', '9', '3')) {
if (SWAP_BYTES_32(tag) == MKTAG('P', 'J', '9', '3') || tag == MKTAG('P', 'J', '9', '5')) {
// PPC: The RIFX shares the data fork with the binary
dataFork->seek(dataFork->readUint32BE());
} else {