diff options
author | Max Horn | 2003-11-01 16:02:14 +0000 |
---|---|---|
committer | Max Horn | 2003-11-01 16:02:14 +0000 |
commit | 6a50ad9fbd98d8d8943df7fdffa559b236665d03 (patch) | |
tree | 96ffc2ac3f7f86408e6824aabf6812431ab8653d /sky | |
parent | ca69882256dca801bc8df78d88d1460cdad49ab9 (diff) | |
download | scummvm-rg350-6a50ad9fbd98d8d8943df7fdffa559b236665d03.tar.gz scummvm-rg350-6a50ad9fbd98d8d8943df7fdffa559b236665d03.tar.bz2 scummvm-rg350-6a50ad9fbd98d8d8943df7fdffa559b236665d03.zip |
avoid using detectname
svn-id: r11021
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; } } |