[Scummvm-cvs-logs] CVS: scummvm/sky sky.cpp,1.125,1.126
Max Horn
fingolfin at users.sourceforge.net
Sat Nov 1 08:03:04 CET 2003
Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1:/tmp/cvs-serv933/sky
Modified Files:
sky.cpp
Log Message:
avoid using detectname
Index: sky.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/sky.cpp,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -d -r1.125 -r1.126
--- sky.cpp 28 Oct 2003 17:07:24 -0000 1.125
+++ sky.cpp 1 Nov 2003 16:02:14 -0000 1.126
@@ -94,15 +94,13 @@
GameList Engine_SKY_detectGames(const FSList &fslist) {
GameList detectedGames;
- const GameSettings *g = &sky_settings[0];
-
// Iterate over all files in the given directory
for (FSList::ConstIterator file = fslist.begin(); file != fslist.end(); ++file) {
- const char *gameName = file->displayName().c_str();
+ const char *fileName = file->displayName().c_str();
- if (0 == scumm_stricmp(g->detectname, gameName)) {
+ if (0 == scumm_stricmp("sky.dsk", fileName)) {
// Match found, add to list of candidates, then abort inner loop.
- detectedGames.push_back(*g);
+ detectedGames.push_back(sky_settings[0]);
break;
}
}
More information about the Scummvm-git-logs
mailing list