[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.451,1.452

Travis Howell kirben at users.sourceforge.net
Fri Aug 20 17:48:16 CEST 2004


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

Modified Files:
	simon.cpp 
Log Message:

Small correction for filename different on some systems


Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.451
retrieving revision 1.452
diff -u -d -r1.451 -r1.452
--- simon.cpp	16 Aug 2004 04:19:43 -0000	1.451
+++ simon.cpp	21 Aug 2004 00:47:29 -0000	1.452
@@ -115,8 +115,7 @@
 		for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) {
 			const char *name = file->displayName().c_str();
 
-			if ((0 == scumm_stricmp(detectName, name))  || 
-				(0 == scumm_stricmp(detectName2, name))) {
+			if ((0 == scumm_stricmp(detectName, name))  || (!0 == scumm_stricmp(detectName2, name))) {
 				// Match found, add to list of candidates, then abort inner loop.
 				detectedGames.push_back(g->toGameSettings());
 				fileSet.addKey(file->path());
@@ -311,9 +310,13 @@
 		// It's quick, it's dirty, and it'll go again eventually :-)
 		char buf[100];
 		uint8 md5sum[16];
+		File f;
 
 		sprintf(buf, g->detectname);
-
+		f.open(buf);
+		if (f.isOpen() == false)
+			strcat(buf, ".");
+		
 		if (md5_file(buf, md5sum)) {
 			// HACK : changed to this code since PalmOS doesn't handle correctly %02x.
 			// It returns only 8 chars string in upper case so i need to use hex[],





More information about the Scummvm-git-logs mailing list