aboutsummaryrefslogtreecommitdiff
path: root/sky
diff options
context:
space:
mode:
authorRobert Göffringmann2004-12-09 15:06:49 +0000
committerRobert Göffringmann2004-12-09 15:06:49 +0000
commit0d7ab01640a2209167272936c624c32142131993 (patch)
treed9ec454332093ae1a6c4ca7f9b2954c5d4852e78 /sky
parent58bf9028b16a1a6d125baa79b223de5e2a5aa0e0 (diff)
downloadscummvm-rg350-0d7ab01640a2209167272936c624c32142131993.tar.gz
scummvm-rg350-0d7ab01640a2209167272936c624c32142131993.tar.bz2
scummvm-rg350-0d7ab01640a2209167272936c624c32142131993.zip
Pass subdirectories to gamedetector functions
svn-id: r16002
Diffstat (limited to 'sky')
-rw-r--r--sky/sky.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/sky/sky.cpp b/sky/sky.cpp
index 048044d43f..bf6b742e1f 100644
--- a/sky/sky.cpp
+++ b/sky/sky.cpp
@@ -90,12 +90,14 @@ DetectedGameList Engine_SKY_detectGames(const FSList &fslist) {
DetectedGameList detectedGames;
// Iterate over all files in the given directory
for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) {
- const char *fileName = file->displayName().c_str();
+ if (!file->isDirectory()) {
+ const char *fileName = file->displayName().c_str();
- if (0 == scumm_stricmp("sky.dsk", fileName)) {
- // Match found, add to list of candidates, then abort inner loop.
- detectedGames.push_back(skySetting);
- break;
+ if (0 == scumm_stricmp("sky.dsk", fileName)) {
+ // Match found, add to list of candidates, then abort inner loop.
+ detectedGames.push_back(skySetting);
+ break;
+ }
}
}
return detectedGames;