hotfix: check for sfo file instead of the folder

This commit is contained in:
ElBread3 2024-09-26 08:56:33 -05:00
parent 00890f73e7
commit 19f903a6c5

View File

@ -28,8 +28,8 @@ public:
std::filesystem::path sce_folder_path = filePath / "sce_sys" / "param.sfo"; std::filesystem::path sce_folder_path = filePath / "sce_sys" / "param.sfo";
std::filesystem::path game_update_path = std::filesystem::path game_update_path =
std::filesystem::path(filePath.string() + "-UPDATE"); std::filesystem::path(filePath.string() + "-UPDATE");
if (std::filesystem::exists(game_update_path)) { if (std::filesystem::exists(game_update_path / "sce_sys" / "param.sfo")) {
sce_folder_path = (game_update_path / "sce_sys" / "param.sfo"); sce_folder_path = game_update_path / "sce_sys" / "param.sfo";
} }
PSF psf; PSF psf;