mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
replace DoFileSearch with optimized version
This commit is contained in:
@ -365,7 +365,7 @@ QVector<QString> Settings::GetProfiles(const InputConfig* config) const
|
||||
const std::string path = GetProfilesDir().toStdString() + config->GetProfileName();
|
||||
QVector<QString> vec;
|
||||
|
||||
for (const auto& file : Common::DoFileSearch({".ini"}, {path}))
|
||||
for (const auto& file : Common::DoFileSearch({path}, {".ini"}))
|
||||
{
|
||||
std::string basename;
|
||||
SplitPath(file, nullptr, &basename, nullptr);
|
||||
|
@ -59,9 +59,8 @@ void InterfacePane::CreateUI()
|
||||
combobox_layout->addRow(tr("&Theme:"), m_combobox_theme);
|
||||
|
||||
// List avalable themes
|
||||
auto file_search_results = Common::DoFileSearch(
|
||||
{""}, {File::GetUserPath(D_THEMES_IDX), File::GetSysDirectory() + THEMES_DIR},
|
||||
/*recursive*/ false);
|
||||
auto file_search_results =
|
||||
Common::DoFileSearch({File::GetUserPath(D_THEMES_IDX), File::GetSysDirectory() + THEMES_DIR});
|
||||
for (const std::string& filename : file_search_results)
|
||||
{
|
||||
std::string name, ext;
|
||||
|
Reference in New Issue
Block a user