mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-20 09:24:59 -05:00
Common/FileSearch: Refactor DoFileSearch
This commit is contained in:
@@ -534,7 +534,7 @@ void MappingWindow::PopulateProfileSelection()
|
||||
m_profiles_combo->clear();
|
||||
|
||||
const std::string profiles_path = m_config->GetUserProfileDirectoryPath();
|
||||
for (const auto& filename : Common::DoFileSearch({profiles_path}, {".ini"}))
|
||||
for (const auto& filename : Common::DoFileSearch(profiles_path, ".ini"))
|
||||
{
|
||||
std::string basename;
|
||||
SplitPath(filename, nullptr, &basename, nullptr);
|
||||
@@ -544,8 +544,7 @@ void MappingWindow::PopulateProfileSelection()
|
||||
|
||||
m_profiles_combo->insertSeparator(m_profiles_combo->count());
|
||||
|
||||
for (const auto& filename :
|
||||
Common::DoFileSearch({m_config->GetSysProfileDirectoryPath()}, {".ini"}))
|
||||
for (const auto& filename : Common::DoFileSearch(m_config->GetSysProfileDirectoryPath(), ".ini"))
|
||||
{
|
||||
std::string basename;
|
||||
SplitPath(filename, nullptr, &basename, nullptr);
|
||||
|
||||
Reference in New Issue
Block a user