From f2e1c71803b953c9adb9528c168cbbde23b3b30a Mon Sep 17 00:00:00 2001 From: Sintendo <3380580+Sintendo@users.noreply.github.com> Date: Wed, 24 Dec 2025 10:14:02 +0100 Subject: Common/FileSearch: Refactor DoFileSearch --- Source/Core/UICommon/GameFileCache.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Core/UICommon/GameFileCache.cpp') diff --git a/Source/Core/UICommon/GameFileCache.cpp b/Source/Core/UICommon/GameFileCache.cpp index f72f47c11e..4c93fb7640 100644 --- a/Source/Core/UICommon/GameFileCache.cpp +++ b/Source/Core/UICommon/GameFileCache.cpp @@ -28,12 +28,12 @@ namespace UICommon { static constexpr u32 CACHE_REVISION = 26; // Last changed in PR 10084 -std::vector FindAllGamePaths(const std::vector& directories_to_scan, +std::vector FindAllGamePaths(std::span directories_to_scan, bool recursive_scan) { - static const std::vector search_extensions = { - ".gcm", ".tgc", ".bin", ".iso", ".ciso", ".gcz", ".wbfs", - ".wia", ".rvz", ".nfs", ".wad", ".dol", ".elf", ".json"}; + constexpr auto search_extensions = + std::to_array({".gcm", ".tgc", ".bin", ".iso", ".ciso", ".gcz", ".wbfs", + ".wia", ".rvz", ".nfs", ".wad", ".dol", ".elf", ".json"}); // TODO: We could process paths iteratively as they are found return Common::DoFileSearch(directories_to_scan, search_extensions, recursive_scan); -- cgit v1.2.3