mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-29 14:53:18 +00:00
Fix Multiple Install Folders (#1328)
* attempt to fix pr * clang format
This commit is contained in:
parent
0a12ba4120
commit
299a29e243
3 changed files with 48 additions and 10 deletions
|
@ -534,7 +534,12 @@ void load(const std::filesystem::path& path) {
|
|||
const auto install_dir_array =
|
||||
toml::find_or<std::vector<std::string>>(gui, "installDirs", {});
|
||||
for (const auto& dir : install_dir_array) {
|
||||
settings_install_dirs.emplace_back(std::filesystem::path{dir});
|
||||
bool not_already_included =
|
||||
std::find(settings_install_dirs.begin(), settings_install_dirs.end(), dir) ==
|
||||
settings_install_dirs.end();
|
||||
if (not_already_included) {
|
||||
settings_install_dirs.emplace_back(std::filesystem::path{dir});
|
||||
}
|
||||
}
|
||||
|
||||
settings_addon_install_dir = toml::find_fs_path_or(gui, "addonInstallDir", {});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue