[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.471,1.472
Robert Göffringmann
lavosspawn at users.sourceforge.net
Thu Dec 9 07:08:05 CET 2004
Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11272/simon
Modified Files:
simon.cpp
Log Message:
Pass subdirectories to gamedetector functions
Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.471
retrieving revision 1.472
diff -u -d -r1.471 -r1.472
--- simon.cpp 5 Dec 2004 17:42:18 -0000 1.471
+++ simon.cpp 9 Dec 2004 15:06:46 -0000 1.472
@@ -113,13 +113,15 @@
// Iterate over all files in the given directory
for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) {
- const char *name = file->displayName().c_str();
+ if (!file->isDirectory()) {
+ const char *name = file->displayName().c_str();
- if ((!scumm_stricmp(detectName, name)) || (!scumm_stricmp(detectName2, name))) {
- // Match found, add to list of candidates, then abort inner loop.
- detectedGames.push_back(g->toGameSettings());
- fileSet.addKey(file->path());
- break;
+ if ((!scumm_stricmp(detectName, name)) || (!scumm_stricmp(detectName2, name))) {
+ // Match found, add to list of candidates, then abort inner loop.
+ detectedGames.push_back(g->toGameSettings());
+ fileSet.addKey(file->path());
+ break;
+ }
}
}
}
More information about the Scummvm-git-logs
mailing list