From b98f0a96b9d55126f4b8b61a31dc21a4a5537715 Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Wed, 11 Sep 2024 04:44:20 +0700 Subject: [PATCH] Retain kernel patches that are not currently needed --- Scripts/config_prodigy.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Scripts/config_prodigy.py b/Scripts/config_prodigy.py index 2bb37ce..0338d1e 100644 --- a/Scripts/config_prodigy.py +++ b/Scripts/config_prodigy.py @@ -133,9 +133,6 @@ class ConfigProdigy: }) for index, patch in enumerate(kernel_patch): - max_kernel = self.utils.parse_darwin_version(patch.get("MaxKernel") or os_data.get_latest_darwin_version()) - min_kernel = self.utils.parse_darwin_version(patch.get("MinKernel") or os_data.get_lowest_darwin_version()) - if "cpuid_cores_per_package" in patch["Comment"]: patch["Replace"] = patch["Replace"].hex() patch["Replace"] = self.utils.hex_to_bytes(patch["Replace"][:2] + self.utils.int_to_hex(int(cpu_cores)) + patch["Replace"][4:]) @@ -150,12 +147,6 @@ class ConfigProdigy: patch["Enabled"] = False elif "shaneee" in patch["Comment"].lower(): patch["Enabled"] = True - - if not min_kernel <= macos_version <= max_kernel or not patch["Enabled"]: - patches_to_remove.append(index) - - for index in patches_to_remove[::-1]: - kernel_patch.pop(index) return kernel_patch