From 0d7ab01640a2209167272936c624c32142131993 Mon Sep 17 00:00:00 2001 From: Robert Göffringmann Date: Thu, 9 Dec 2004 15:06:49 +0000 Subject: Pass subdirectories to gamedetector functions svn-id: r16002 --- kyra/kyra.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'kyra') diff --git a/kyra/kyra.cpp b/kyra/kyra.cpp index fb42bbe4c4..3ed497581d 100644 --- a/kyra/kyra.cpp +++ b/kyra/kyra.cpp @@ -77,10 +77,12 @@ DetectedGameList Engine_KYRA_detectGames(const FSList &fslist) { 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; + } } } } -- cgit v1.2.3