mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
Common/FileSearch: Refactor DoFileSearch
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user