[Scummvm-cvs-logs] SF.net SVN: scummvm:[48095] scummvm/trunk/engines/cruise/saveload.cpp

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Sat Feb 20 11:37:08 CET 2010


Revision: 48095
          http://scummvm.svn.sourceforge.net/scummvm/?rev=48095&view=rev
Author:   dreammaster
Date:     2010-02-20 10:37:08 +0000 (Sat, 20 Feb 2010)

Log Message:
-----------
Put in a warning in case there is ever too long a background resource name when saving a game

Modified Paths:
--------------
    scummvm/trunk/engines/cruise/saveload.cpp

Modified: scummvm/trunk/engines/cruise/saveload.cpp
===================================================================
--- scummvm/trunk/engines/cruise/saveload.cpp	2010-02-20 10:32:25 UTC (rev 48094)
+++ scummvm/trunk/engines/cruise/saveload.cpp	2010-02-20 10:37:08 UTC (rev 48095)
@@ -150,6 +150,9 @@
 static void syncBackgroundTable(Common::Serializer &s) {
 	// restore backgroundTable
 	for (int i = 0; i < 8; i++) {
+		if (s.isSaving() && (strlen(backgroundTable[i].name) > 8))
+			warning("Saving a background resource that has too long a name");
+
 		s.syncBytes((byte *)backgroundTable[i].name, 9);
 		s.syncBytes((byte *)backgroundTable[i].extention, 6);
 	}


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