From fa65919a3826bfd731e80ffb07b87bd5b6b47db4 Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Tue, 15 Oct 2024 00:46:25 +0700 Subject: [PATCH] Update function to check Intel HEDT CPUs --- Scripts/kext_maestro.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Scripts/kext_maestro.py b/Scripts/kext_maestro.py index 4c2c0e5..d18b7cd 100644 --- a/Scripts/kext_maestro.py +++ b/Scripts/kext_maestro.py @@ -70,8 +70,7 @@ class KextMaestro: return pci_ids def is_intel_hedt_cpu(self, cpu_codename): - return "-E" in cpu_codename and not self.utils.contains_any(cpu_data.IntelCPUGenerations, cpu_codename, end=4) is None or \ - ("-X" in cpu_codename or "-W" in cpu_codename) and not self.utils.contains_any(cpu_data.IntelCPUGenerations, cpu_codename, start=4, end=6) is None + return not self.utils.contains_any(cpu_data.IntelCPUGenerations, cpu_codename, start=21) is None and cpu_codename.endswith(("-X", "-P", "-W", "-E", "-EP", "-EX")) def get_kext_index(self, name): for index, kext in enumerate(self.kexts):