[Scummvm-cvs-logs] CVS: scummvm/sword2 sword2.cpp,1.126,1.127
Robert Göffringmann
lavosspawn at users.sourceforge.net
Thu Dec 9 07:08:01 CET 2004
Update of /cvsroot/scummvm/scummvm/sword2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11272/sword2
Modified Files:
sword2.cpp
Log Message:
Pass subdirectories to gamedetector functions
Index: sword2.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/sword2.cpp,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -d -r1.126 -r1.127
--- sword2.cpp 5 Dec 2004 17:42:20 -0000 1.126
+++ sword2.cpp 9 Dec 2004 15:06:49 -0000 1.127
@@ -80,12 +80,14 @@
for (g = sword2_settings; g->name; ++g) {
// 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(g->detectname, gameName)) {
- // Match found, add to list of candidates, then abort inner loop.
- detectedGames.push_back(g->toGameSettings());
- break;
+ if (0 == scumm_stricmp(g->detectname, gameName)) {
+ // Match found, add to list of candidates, then abort inner loop.
+ detectedGames.push_back(g->toGameSettings());
+ break;
+ }
}
}
}
More information about the Scummvm-git-logs
mailing list