From 1b14d26ff9348f1752d0716a05d031e26154473e Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Tue, 31 Dec 2024 13:54:32 +0700 Subject: [PATCH] Correct condition to avoid XHCI-unsupported kext on AMD systems --- Scripts/kext_maestro.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/kext_maestro.py b/Scripts/kext_maestro.py index 0404146..2eb904d 100644 --- a/Scripts/kext_maestro.py +++ b/Scripts/kext_maestro.py @@ -1,7 +1,6 @@ from Scripts.datasets import cpu_data from Scripts.datasets import kext_data -from Scripts.datasets import mac_model_data from Scripts.datasets import os_data from Scripts.datasets import pci_data from Scripts.datasets import codec_layouts @@ -245,8 +244,9 @@ class KextMaestro: device_id = controller_props.get("Device ID") if device_id in pci_data.UnsupportedUSBControllerIDs: idx = pci_data.UnsupportedUSBControllerIDs.index(device_id) - if idx == 0 and "Laptop" in hardware_report.get("Motherboard").get("Platform"): - selected_kexts.append("GenericUSBXHCI") + if idx == 0: + if "Laptop" in hardware_report.get("Motherboard").get("Platform"): + selected_kexts.append("GenericUSBXHCI") else: selected_kexts.append("XHCI-unsupported") @@ -319,7 +319,7 @@ class KextMaestro: for bundle_identifier, bundle_version in bundle_info.get("OSBundleLibraries", {}).items() } } - + def modify_kexts(self, plist_path, hardware_report, macos_version): try: bundle_info = self.utils.read_file(plist_path)