[Scummvm-cvs-logs] CVS: scummvm/queen queen.cpp,1.107,1.108

Robert Göffringmann lavosspawn at users.sourceforge.net
Thu Dec 9 07:08:04 CET 2004


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

Modified Files:
	queen.cpp 
Log Message:
Pass subdirectories to gamedetector functions

Index: queen.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/queen.cpp,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -d -r1.107 -r1.108
--- queen.cpp	3 Dec 2004 22:39:55 -0000	1.107
+++ queen.cpp	9 Dec 2004 15:06:44 -0000	1.108
@@ -64,12 +64,14 @@
 
 	// Iterate over all files in the given directory
 	for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) {
-		const char *gameName = file->displayName().c_str();
+		if (!file->isDirectory()) {
+			const char *gameName = file->displayName().c_str();
 
-		if (0 == scumm_stricmp("queen.1", gameName) || 0 == scumm_stricmp("queen.1c", gameName)) {
-			// Match found, add to list of candidates, then abort loop.
-			detectedGames.push_back(queen_setting);
-			break;
+			if (0 == scumm_stricmp("queen.1", gameName) || 0 == scumm_stricmp("queen.1c", gameName)) {
+				// Match found, add to list of candidates, then abort loop.
+				detectedGames.push_back(queen_setting);
+				break;
+			}
 		}
 	}
 	return detectedGames;





More information about the Scummvm-git-logs mailing list