From e66214d93ef48e308c2564bc5eaf62f657e132b3 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 30 Dec 2019 00:45:37 +1000 Subject: [PATCH] GameList: Fix non-recursive scanning --- src/core/game_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/game_list.cpp b/src/core/game_list.cpp index c93fdec89..17c5ea016 100644 --- a/src/core/game_list.cpp +++ b/src/core/game_list.cpp @@ -292,7 +292,7 @@ void GameList::ScanDirectory(const char* path, bool recursive) Log_DevPrintf("Scanning %s%s", path, recursive ? " (recursively)" : ""); FileSystem::FindResultsArray files; - FileSystem::FindFiles(path, "*", FILESYSTEM_FIND_FILES | FILESYSTEM_FIND_RECURSIVE, &files); + FileSystem::FindFiles(path, "*", FILESYSTEM_FIND_FILES | (recursive ? FILESYSTEM_FIND_RECURSIVE : 0), &files); GameListEntry entry; for (const FILESYSTEM_FIND_DATA& ffd : files)