From 3cc78028975263c150e675e8ff3f34b9bc8b56ba Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 21 Jul 2021 20:25:52 +1000 Subject: [PATCH] GameList: Scan hidden files --- src/frontend-common/game_list.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontend-common/game_list.cpp b/src/frontend-common/game_list.cpp index 1752ba568..b5a549959 100644 --- a/src/frontend-common/game_list.cpp +++ b/src/frontend-common/game_list.cpp @@ -471,7 +471,10 @@ void GameList::ScanDirectory(const char* path, bool recursive, ProgressCallback* progress->SetFormattedStatusText("Scanning directory '%s'%s...", path, recursive ? " (recursively)" : ""); FileSystem::FindResultsArray files; - FileSystem::FindFiles(path, "*", FILESYSTEM_FIND_FILES | (recursive ? FILESYSTEM_FIND_RECURSIVE : 0), &files); + FileSystem::FindFiles(path, "*", + recursive ? (FILESYSTEM_FIND_FILES | FILESYSTEM_FIND_HIDDEN_FILES | FILESYSTEM_FIND_RECURSIVE) : + (FILESYSTEM_FIND_FILES | FILESYSTEM_FIND_HIDDEN_FILES), + &files); progress->SetProgressRange(static_cast(files.size())); progress->SetProgressValue(0);