From 1ab240917686a0d68b3e37e413e713421dfba2fd Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Sat, 4 Feb 2023 17:37:32 -0700 Subject: [PATCH] sys_patch.py: Fix PSP handling --- resources/sys_patch/sys_patch.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/sys_patch/sys_patch.py b/resources/sys_patch/sys_patch.py index e2f78a129..161cee3ee 100644 --- a/resources/sys_patch/sys_patch.py +++ b/resources/sys_patch/sys_patch.py @@ -664,6 +664,12 @@ class PatchSysVolume: logging.info("- Local PatcherSupportPkg resources available, continuing...") return True + if Path(self.constants.payload_local_binaries_root_path_zip).exists(): + logging.info("- Local PatcherSupportPkg resources available, unzipping...") + print("- Unzipping binaries...") + utilities.process_status(subprocess.run(["ditto", "-V", "-x", "-k", "--sequesterRsrc", "--rsrc", self.constants.payload_local_binaries_root_path_zip, self.constants.payload_path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)) + return True + logging.info("- PatcherSupportPkg resources missing, Patcher likely corrupted!!!") return False