mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-18 21:30:00 +10:00
sys_patch_dict.py: Rework into class
This commit is contained in:
+1168
-1120
File diff suppressed because it is too large
Load Diff
@@ -738,7 +738,7 @@ class DetectRootPatch:
|
|||||||
dict: Dictionary of patches to be applied from sys_patch_dict.py
|
dict: Dictionary of patches to be applied from sys_patch_dict.py
|
||||||
"""
|
"""
|
||||||
|
|
||||||
all_hardware_patchset: dict = sys_patch_dict.SystemPatchDictionary(self.constants.detected_os, self.constants.detected_os_minor, self.constants.legacy_accel_support)
|
all_hardware_patchset: dict = sys_patch_dict.SystemPatchDictionary(self.constants.detected_os, self.constants.detected_os_minor, self.constants.legacy_accel_support).patchset_dict
|
||||||
required_patches: dict = {}
|
required_patches: dict = {}
|
||||||
|
|
||||||
utilities.cls()
|
utilities.cls()
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ class PatcherValidation:
|
|||||||
minor_kernel (int): Minor kernel version
|
minor_kernel (int): Minor kernel version
|
||||||
"""
|
"""
|
||||||
|
|
||||||
patchset = sys_patch_dict.SystemPatchDictionary(major_kernel, minor_kernel, self.constants.legacy_accel_support)
|
patchset = sys_patch_dict.SystemPatchDictionary(major_kernel, minor_kernel, self.constants.legacy_accel_support).patchset_dict
|
||||||
host_os_float = float(f"{major_kernel}.{minor_kernel}")
|
host_os_float = float(f"{major_kernel}.{minor_kernel}")
|
||||||
|
|
||||||
for patch_subject in patchset:
|
for patch_subject in patchset:
|
||||||
|
|||||||
Reference in New Issue
Block a user