[Scummvm-cvs-logs] CVS: scummvm/sky sky.cpp,1.163,1.164
Robert Göffringmann
lavosspawn at users.sourceforge.net
Thu Dec 9 07:07:06 CET 2004
Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11272/sky
Modified Files:
sky.cpp
Log Message:
Pass subdirectories to gamedetector functions
Index: sky.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/sky.cpp,v
retrieving revision 1.163
retrieving revision 1.164
diff -u -d -r1.163 -r1.164
--- sky.cpp 5 Dec 2004 17:42:19 -0000 1.163
+++ sky.cpp 9 Dec 2004 15:06:47 -0000 1.164
@@ -90,12 +90,14 @@
DetectedGameList detectedGames;
// Iterate over all files in the given directory
for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) {
- const char *fileName = file->displayName().c_str();
+ if (!file->isDirectory()) {
+ const char *fileName = file->displayName().c_str();
- if (0 == scumm_stricmp("sky.dsk", fileName)) {
- // Match found, add to list of candidates, then abort inner loop.
- detectedGames.push_back(skySetting);
- break;
+ if (0 == scumm_stricmp("sky.dsk", fileName)) {
+ // Match found, add to list of candidates, then abort inner loop.
+ detectedGames.push_back(skySetting);
+ break;
+ }
}
}
return detectedGames;
More information about the Scummvm-git-logs
mailing list