[Scummvm-cvs-logs] CVS: scummvm/common file.cpp,1.73,1.74

Eugene Sandulenko sev at users.sourceforge.net
Sun Nov 14 13:11:07 CET 2004


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

Modified Files:
	file.cpp 
Log Message:
Extend fopenNoCase with probe of capitalized files, such as Cave.mid.


Index: file.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/file.cpp,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -d -r1.73 -r1.74
--- file.cpp	7 Nov 2004 17:20:32 -0000	1.73
+++ file.cpp	14 Nov 2004 21:10:50 -0000	1.74
@@ -83,6 +83,15 @@
 		file = fopen(buf, mode);
 	}
 
+	//
+	// Try again, with file name capitalized
+	//
+	if (!file) {
+		ptr = buf + offsetToFileName;
+		*ptr = toupper(*ptr);
+		file = fopen(buf, mode);
+	}
+
 	return file;
 }
 





More information about the Scummvm-git-logs mailing list