mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-30 06:16:16 +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:
parent
6f944ab117
commit
99332e4ec2
8 changed files with 39 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue