aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/robot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/graphics/robot.cpp')
-rw-r--r--engines/sci/graphics/robot.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/sci/graphics/robot.cpp b/engines/sci/graphics/robot.cpp
index f04609d6de..b0b6a020c5 100644
--- a/engines/sci/graphics/robot.cpp
+++ b/engines/sci/graphics/robot.cpp
@@ -106,6 +106,14 @@ void GfxRobot::init(GuiResourceId resourceId, uint16 x, uint16 y) {
// Supported
break;
default:
+ // Even the robots have the be byte swapped for the Mac version...
+ if (SWAP_BYTES_16(_header.version) == 5 && g_sci->getPlatform() == Common::kPlatformMacintosh) {
+ warning("Unsupported Mac Robot file");
+ _curFrame = _header.frameCount; // Jump to the last frame
+ _robotFile.close();
+ return;
+ }
+
// Unsupported, error out so that we find out where this is used
error("Unknown robot version: %d", _header.version);
}