mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-28 18:46:06 +00:00
use addGameInstallDir here (#1354)
This commit is contained in:
parent
7c00ac637a
commit
97b5289f15
|
@ -538,12 +538,12 @@ void load(const std::filesystem::path& path) {
|
|||
// TODO Migration code, after a major release this should be removed.
|
||||
auto old_game_install_dir = toml::find_fs_path_or(gui, "installDir", {});
|
||||
if (!old_game_install_dir.empty()) {
|
||||
settings_install_dirs.emplace_back(std::filesystem::path{old_game_install_dir});
|
||||
addGameInstallDir(std::filesystem::path{old_game_install_dir});
|
||||
} else {
|
||||
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});
|
||||
addGameInstallDir(std::filesystem::path{dir});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue