From bba8bb4c3357ea72b64a498afd47e54e05c7d2f2 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Wed, 14 Nov 2012 22:14:26 -0500 Subject: DIRECTOR: Add v5 Mac data fork parsing --- engines/director/director.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/director/director.cpp b/engines/director/director.cpp index 0b6b626cfe..10dce678f8 100644 --- a/engines/director/director.cpp +++ b/engines/director/director.cpp @@ -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 { -- cgit v1.2.3