[Scummvm-cvs-logs] SF.net SVN: scummvm:[48067] scummvm/trunk/engines/gob/resources.cpp

strangerke at users.sourceforge.net strangerke at users.sourceforge.net
Mon Feb 15 23:17:48 CET 2010


Revision: 48067
          http://scummvm.svn.sourceforge.net/scummvm/?rev=48067&view=rev
Author:   strangerke
Date:     2010-02-15 22:17:48 +0000 (Mon, 15 Feb 2010)

Log Message:
-----------
Playtoons - "Fascination" workaround for text is also required for Playtoons.

Modified Paths:
--------------
    scummvm/trunk/engines/gob/resources.cpp

Modified: scummvm/trunk/engines/gob/resources.cpp
===================================================================
--- scummvm/trunk/engines/gob/resources.cpp	2010-02-15 17:10:40 UTC (rev 48066)
+++ scummvm/trunk/engines/gob/resources.cpp	2010-02-15 22:17:48 UTC (rev 48067)
@@ -574,8 +574,9 @@
 		return 0;
 	if ((totItem.offset + totItem.size) > (_totTextTable->size)) {
 // HACK: Some Fascination versions (Amiga, Atari and first PC floppies) have a different header, which is a problem here.
+//       Playtoons also have the same problem (and workaround).
 // TODO: Handle that in a proper way
-		if ((_vm->getGameType() == kGameTypeFascination) & (_totTextTable->size < 0))
+		if (((_vm->getGameType() == kGameTypeFascination) | (_vm->getGameType() == kGameTypePlaytoons)) & (_totTextTable->size < 0))
 			warning("totTextTable with negative size id:%d offset:%d in file %s : (size: %d)", id, totItem.offset, _totFile.c_str(), _totTextTable->size);
 		else
 			return 0;


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