diff options
| author | Sintendo <3380580+Sintendo@users.noreply.github.com> | 2025-12-24 10:14:02 +0100 |
|---|---|---|
| committer | Sintendo <3380580+Sintendo@users.noreply.github.com> | 2026-01-24 16:50:10 +0100 |
| commit | f2e1c71803b953c9adb9528c168cbbde23b3b30a (patch) | |
| tree | 276c17d2bbfaebc6dc2193e1f6e3a6f387eb0787 /Source/Core/InputCommon/InputProfile.cpp | |
| parent | 3221e982d371afd39793628bf8973f3cc951db35 (diff) | |
Common/FileSearch: Refactor DoFileSearch
Diffstat (limited to 'Source/Core/InputCommon/InputProfile.cpp')
| -rw-r--r-- | Source/Core/InputCommon/InputProfile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/InputProfile.cpp b/Source/Core/InputCommon/InputProfile.cpp index 0bb452ac1e..a9471c2765 100644 --- a/Source/Core/InputCommon/InputProfile.cpp +++ b/Source/Core/InputCommon/InputProfile.cpp @@ -37,7 +37,7 @@ std::vector<std::string> GetProfilesFromSetting(const std::string& setting, cons const std::string path = root + std::string(StripWhitespace(setting_choice)); if (File::IsDirectory(path)) { - const auto files_under_directory = Common::DoFileSearch({path}, {".ini"}, true); + const auto files_under_directory = Common::DoFileSearch(path, ".ini", true); result.insert(result.end(), files_under_directory.begin(), files_under_directory.end()); } else @@ -57,7 +57,7 @@ std::vector<std::string> ProfileCycler::GetProfilesForDevice(InputConfig* device { const std::string device_profile_root_location( device_configuration->GetUserProfileDirectoryPath()); - return Common::DoFileSearch({device_profile_root_location}, {".ini"}, true); + return Common::DoFileSearch(device_profile_root_location, ".ini", true); } std::string ProfileCycler::GetProfile(CycleDirection cycle_direction, int& profile_index, |
