mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-13 20:28:21 +10:00
sys_patch.py: Resolve LE cleaning on Web Drivers
Thanks @midi1996 for catching
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
- Move images to `docs/images`
|
||||
- Payloads:
|
||||
- Remove redundant/unused files bundled in payloads.dmg
|
||||
- Resolve unpatching Nvidia Web Drivers failing to clean up `/Library/Extensions`
|
||||
|
||||
## 1.4.3
|
||||
- Update non-Metal Binaries for macOS Sonoma:
|
||||
|
||||
@@ -511,15 +511,16 @@ class PatchSysVolume:
|
||||
for key in oclp_plist_data:
|
||||
if isinstance(oclp_plist_data[key], (bool, int)):
|
||||
continue
|
||||
if "Install" not in oclp_plist_data[key]:
|
||||
continue
|
||||
for location in oclp_plist_data[key]["Install"]:
|
||||
if not location.endswith("Extensions"):
|
||||
for install_type in ["Install", "Install Non-Root"]:
|
||||
if install_type not in oclp_plist_data[key]:
|
||||
continue
|
||||
for file in oclp_plist_data[key]["Install"][location]:
|
||||
if not file.endswith(".kext"):
|
||||
for location in oclp_plist_data[key][install_type]:
|
||||
if not location.endswith("Extensions"):
|
||||
continue
|
||||
self._remove_file("/Library/Extensions", file)
|
||||
for file in oclp_plist_data[key][install_type][location]:
|
||||
if not file.endswith(".kext"):
|
||||
continue
|
||||
self._remove_file("/Library/Extensions", file)
|
||||
|
||||
# Handle situations where users migrated from older OSes with a lot of garbage in /L*/E*
|
||||
# ex. Nvidia Web Drivers, NetUSB, dosdude1's patches, etc.
|
||||
|
||||
Reference in New Issue
Block a user