mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 22:20:53 +10:00
sys_patch_detect.py: Fix KDKless logic for Sonoma
This commit is contained in:
@@ -229,9 +229,17 @@ class DetectRootPatch:
|
|||||||
self.amfi_must_disable = True
|
self.amfi_must_disable = True
|
||||||
self.supports_metal = True
|
self.supports_metal = True
|
||||||
|
|
||||||
|
|
||||||
if self.constants.detected_os >= os_data.os_data.sonoma:
|
if self.constants.detected_os >= os_data.os_data.sonoma:
|
||||||
# Currently all graphics patches require a KDK
|
if any(
|
||||||
self.requires_root_kc = True
|
self.kepler_gpu,
|
||||||
|
self.ivy_gpu,
|
||||||
|
self.haswell_gpu,
|
||||||
|
self.broadwell_gpu,
|
||||||
|
self.skylake_gpu,
|
||||||
|
):
|
||||||
|
# All KDKless GPUs require a KDK in Sonoma due to IOSurface downgrade
|
||||||
|
self.requires_root_kc = True
|
||||||
|
|
||||||
if self.supports_metal is True:
|
if self.supports_metal is True:
|
||||||
# Avoid patching Metal and non-Metal GPUs if both present, prioritize Metal GPU
|
# Avoid patching Metal and non-Metal GPUs if both present, prioritize Metal GPU
|
||||||
|
|||||||
Reference in New Issue
Block a user