mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-11 06:08:34 +00:00
Handle "-patch" as the suffix for game update folders (#2674)
* Handle "-patch" as the suffix for game update folders * clang * clang 2
This commit is contained in:
@@ -840,7 +840,7 @@ void MainWindow::InstallDragDropPkg(std::filesystem::path file, int pkgNum, int
|
||||
// Default paths
|
||||
auto game_folder_path = game_install_dir / pkg.GetTitleID();
|
||||
auto game_update_path = use_game_update ? game_folder_path.parent_path() /
|
||||
(std::string{pkg.GetTitleID()} + "-UPDATE")
|
||||
(std::string{pkg.GetTitleID()} + "-patch")
|
||||
: game_folder_path;
|
||||
const int max_depth = 5;
|
||||
|
||||
@@ -851,7 +851,7 @@ void MainWindow::InstallDragDropPkg(std::filesystem::path file, int pkgNum, int
|
||||
if (found_game.has_value()) {
|
||||
game_folder_path = found_game.value().parent_path();
|
||||
game_update_path = use_game_update ? game_folder_path.parent_path() /
|
||||
(std::string{pkg.GetTitleID()} + "-UPDATE")
|
||||
(std::string{pkg.GetTitleID()} + "-patch")
|
||||
: game_folder_path;
|
||||
}
|
||||
} else {
|
||||
@@ -866,7 +866,7 @@ void MainWindow::InstallDragDropPkg(std::filesystem::path file, int pkgNum, int
|
||||
game_folder_path = game_install_dir / pkg.GetTitleID();
|
||||
}
|
||||
game_update_path = use_game_update ? game_folder_path.parent_path() /
|
||||
(std::string{pkg.GetTitleID()} + "-UPDATE")
|
||||
(std::string{pkg.GetTitleID()} + "-patch")
|
||||
: game_folder_path;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user