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

strangerke at users.sourceforge.net strangerke at users.sourceforge.net
Mon Aug 17 12:05:02 CEST 2009


Revision: 43464
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43464&view=rev
Author:   strangerke
Date:     2009-08-17 10:05:02 +0000 (Mon, 17 Aug 2009)

Log Message:
-----------
Add back parenthesis (I wasn't aware of this convention, sorry) in saveload, and mimic this code in oPlaytoons_openItk

Modified Paths:
--------------
    scummvm/trunk/engines/gob/inter_playtoons.cpp
    scummvm/trunk/engines/gob/save/saveload.cpp

Modified: scummvm/trunk/engines/gob/inter_playtoons.cpp
===================================================================
--- scummvm/trunk/engines/gob/inter_playtoons.cpp	2009-08-17 09:57:09 UTC (rev 43463)
+++ scummvm/trunk/engines/gob/inter_playtoons.cpp	2009-08-17 10:05:02 UTC (rev 43464)
@@ -150,7 +150,7 @@
 		strcat(fileName, ".ITK");
 
 	// Workaround for Bambou : In the script, the path is hardcoded (!!)
-	if ((backSlash = strrchr(fileName, '\\')) != 0) {
+	if ((backSlash = strrchr(fileName, '\\'))) {
 		debugC(2, kDebugFileIO, "Opening ITK file \"%s\" instead of \"%s\"", backSlash + 1, fileName);
 		_vm->_dataIO->openDataFile(backSlash + 1, true);
 	} else

Modified: scummvm/trunk/engines/gob/save/saveload.cpp
===================================================================
--- scummvm/trunk/engines/gob/save/saveload.cpp	2009-08-17 09:57:09 UTC (rev 43463)
+++ scummvm/trunk/engines/gob/save/saveload.cpp	2009-08-17 10:05:02 UTC (rev 43464)
@@ -42,7 +42,7 @@
 
 const char *SaveLoad::stripPath(const char *fileName) {
 	const char *backSlash;
-	if (backSlash = strrchr(fileName, '\\'))
+	if ((backSlash = strrchr(fileName, '\\')))
 		return backSlash + 1;
 
 	return fileName;


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