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);