[Scummvm-cvs-logs] SF.net SVN: scummvm:[55778] scummvm/trunk/engines/sci/graphics/robot.cpp
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Sat Feb 5 08:49:22 CET 2011
Revision: 55778
http://scummvm.svn.sourceforge.net/scummvm/?rev=55778&view=rev
Author: mthreepwood
Date: 2011-02-05 07:49:21 +0000 (Sat, 05 Feb 2011)
Log Message:
-----------
SCI: Throw a warning when trying to play a Mac robot file (big endian)
Modified Paths:
--------------
scummvm/trunk/engines/sci/graphics/robot.cpp
Modified: scummvm/trunk/engines/sci/graphics/robot.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/robot.cpp 2011-02-04 23:38:40 UTC (rev 55777)
+++ scummvm/trunk/engines/sci/graphics/robot.cpp 2011-02-05 07:49:21 UTC (rev 55778)
@@ -106,6 +106,14 @@
// 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);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list