[Scummvm-cvs-logs] CVS: scummvm/kyra kyra.cpp,1.20,1.21
Robert Göffringmann
lavosspawn at users.sourceforge.net
Thu Dec 9 07:08:09 CET 2004
Update of /cvsroot/scummvm/scummvm/kyra
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11272/kyra
Modified Files:
kyra.cpp
Log Message:
Pass subdirectories to gamedetector functions
Index: kyra.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/kyra/kyra.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- kyra.cpp 5 Dec 2004 17:42:17 -0000 1.20
+++ kyra.cpp 9 Dec 2004 15:06:43 -0000 1.21
@@ -77,10 +77,12 @@
continue;
for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) {
- const char *name = file->displayName().c_str();
- if ((!scumm_stricmp(game->detectName, name))) {
- detectedGames.push_back(game->toGameSettings());
- break;
+ if (!file->isDirectory()) {
+ const char *name = file->displayName().c_str();
+ if ((!scumm_stricmp(game->detectName, name))) {
+ detectedGames.push_back(game->toGameSettings());
+ break;
+ }
}
}
}
More information about the Scummvm-git-logs
mailing list