diff options
author | Matthew Hoops | 2011-02-05 07:49:21 +0000 |
---|---|---|
committer | Matthew Hoops | 2011-02-05 07:49:21 +0000 |
commit | ad9486e1a808e2d8f529850e289ff4208c93edf3 (patch) | |
tree | 1617c8c3fe02745c74f679e58ff0507c80ababb5 /engines | |
parent | 4aaa0450172377c1cd1fad63f8e7711ecff8a01a (diff) | |
download | scummvm-rg350-ad9486e1a808e2d8f529850e289ff4208c93edf3.tar.gz scummvm-rg350-ad9486e1a808e2d8f529850e289ff4208c93edf3.tar.bz2 scummvm-rg350-ad9486e1a808e2d8f529850e289ff4208c93edf3.zip |
SCI: Throw a warning when trying to play a Mac robot file (big endian)
svn-id: r55778
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/graphics/robot.cpp | 8 |
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); } |