diff options
-rw-r--r-- | engines/sci/resource.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index d1bf869836..8c8bc6d512 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -459,6 +459,13 @@ void MacResourceForkResourceSource::decompressResource(Common::SeekableReadStrea bool canBeCompressed = !(g_sci && g_sci->getGameId() == GID_KQ6) && isCompressableResource(resource->_id.getType()); uint32 uncompressedSize = 0; + // GK2 Mac is crazy. In its Patches resource fork, picture 2315 is not + // compressed and it is hardcoded in the executable to say that it's + // not compressed. Why didn't they just add four zeroes to the end of + // the resource? (Checked with PPC disasm) + if (g_sci && g_sci->getGameId() == GID_GK2 && resource->_id.getType() == kResourceTypePic && resource->_id.getNumber() == 2315) + canBeCompressed = false; + // Get the uncompressed size from the end of the resource if (canBeCompressed && stream->size() > 4) { stream->seek(stream->size() - 4); |