From eb6a52c55c910ec79dadaf4383a254c09ef032d5 Mon Sep 17 00:00:00 2001 From: Rain Date: Tue, 24 Dec 2024 11:54:30 -0500 Subject: [PATCH] replaced recursive_directory_iterator w/ FindFiles() --- pcsx2-qt/Settings/ControllerSettingsWindow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pcsx2-qt/Settings/ControllerSettingsWindow.cpp b/pcsx2-qt/Settings/ControllerSettingsWindow.cpp index c335b1797a..5e95c88fc7 100644 --- a/pcsx2-qt/Settings/ControllerSettingsWindow.cpp +++ b/pcsx2-qt/Settings/ControllerSettingsWindow.cpp @@ -200,10 +200,11 @@ void ControllerSettingsWindow::onRenameProfileClicked() return; } - std::string game_settings_dir(EmuFolders::GameSettings); - for (const auto& game_settings : std::filesystem::recursive_directory_iterator(game_settings_dir)) + FileSystem::FindResultsArray files; + FileSystem::FindFiles(EmuFolders::GameSettings.c_str(), "*", FILESYSTEM_FIND_FILES, &files); + for (const auto& game_settings : files) { - std::string game_settings_path(game_settings.path().string()); + std::string game_settings_path(game_settings.FileName.c_str()); std::unique_ptr update_sif(std::make_unique(std::move(game_settings_path))); update_sif->Load(); @@ -212,8 +213,7 @@ void ControllerSettingsWindow::onRenameProfileClicked() { update_sif->SetStringValue("EmuCore", "InputProfileName", profile_name.toUtf8()); } - } - + } refreshProfileList(); switchProfile({profile_name});