diff options
Diffstat (limited to 'sky')
-rw-r--r-- | sky/sky.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sky/sky.cpp b/sky/sky.cpp index 473530da0b..22c170673e 100644 --- a/sky/sky.cpp +++ b/sky/sky.cpp @@ -94,15 +94,13 @@ GameList Engine_SKY_gameList() { 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; } } |