sys_oatch: Fix prompt logic

This commit is contained in:
Mykola Grymalyuk
2022-09-04 11:42:01 -06:00
parent 9758124b2b
commit 9da0b24b30
2 changed files with 6 additions and 2 deletions

View File

@@ -34,6 +34,8 @@
- AMD: GCN 1 through 3
- Raise SIP requirement to 0xA03 for root patching
- Add Ventura Boot Picker icons
- Implement KDK-less root patching for Metal Intel and Nvidia GPUs
- AMD GCN will still require a KDK installed for patching
- Increment Binaries:
- OpenCorePkg 0.8.3 release
- Lilu 1.6.2 - release

View File

@@ -339,7 +339,7 @@ class PatchSysVolume:
updated_install_location = str(self.mount_location_data) + "/Library/Extensions"
print(f"- Adding AuxKC support to {install_file}")
print(f" - Adding AuxKC support to {install_file}")
plist_path = Path(Path(source_folder_path) / Path(install_file) / Path("Contents/Info.plist"))
plist_data = plistlib.load((plist_path).open("rb"))
@@ -373,11 +373,13 @@ class PatchSysVolume:
for kext in aux_cache_data["kextsToBuild"]:
if "bundlePathMainOS" in aux_cache_data["kextsToBuild"][kext]:
if aux_cache_data["kextsToBuild"][kext]["bundlePathMainOS"] == f"/Library/Extensions/{kext_name}":
self.constants.needs_to_open_preferences = True # Notify in GUI to open System Preferences
return
except PermissionError:
pass
print(f" - {kext_name} requires authentication in System Preferences")
self.constants.needs_to_open_preferences = True # Notify in GUI to open System Preferences
def patch_root_vol(self):
print(f"- Running patches for {self.model}")
if self.patch_set_dictionary != {}: