[Scummvm-cvs-logs] CVS: scummvm/sword2 resman.cpp,1.95,1.96

Max Horn fingolfin at users.sourceforge.net
Sun Jun 27 15:16:02 CEST 2004


Update of /cvsroot/scummvm/scummvm/sword2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19289/sword2

Modified Files:
	resman.cpp 
Log Message:
Reversed param order of File::open() -- this allowed me to get rid of a few more getGameDataPath() calls

Index: resman.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/resman.cpp,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -d -r1.95 -r1.96
--- resman.cpp	10 Jun 2004 06:48:50 -0000	1.95
+++ resman.cpp	27 Jun 2004 22:14:32 -0000	1.96
@@ -525,8 +525,8 @@
 			sprintf(buf, "dumps/%s-%d.dmp", tag, res);
 #endif
 
-			if (!out.open(buf, "")) {
-				if (out.open(buf, "", File::kFileWriteMode))
+			if (!out.open(buf, File::kFileReadMode, "")) {
+				if (out.open(buf, File::kFileWriteMode, ""))
 					out.write(_resList[res].ptr, len);
 			}
 





More information about the Scummvm-git-logs mailing list