mirror of
https://github.com/outbackdingo/OpCore-Simplify.git
synced 2026-08-25 14:53:06 +00:00
Remove Restore defaults options
This commit is contained in:
+2
-2
@@ -329,9 +329,9 @@ class OCPE:
|
|||||||
self.k.select_required_kexts(hardware_report, macos_version, needs_oclp, self.ac.patches)
|
self.k.select_required_kexts(hardware_report, macos_version, needs_oclp, self.ac.patches)
|
||||||
self.s.smbios_specific_options(hardware_report, smbios_model, macos_version, self.ac.patches, self.k)
|
self.s.smbios_specific_options(hardware_report, smbios_model, macos_version, self.ac.patches, self.k)
|
||||||
elif option == 3:
|
elif option == 3:
|
||||||
self.ac.customize_patch_selection(hardware_report, unsupported_devices)
|
self.ac.customize_patch_selection()
|
||||||
elif option == 4:
|
elif option == 4:
|
||||||
self.k.kext_configuration_menu(hardware_report, smbios_model, macos_version, self.ac.patches)
|
self.k.kext_configuration_menu(macos_version)
|
||||||
elif option == 5:
|
elif option == 5:
|
||||||
smbios_model = self.s.customize_smbios_model(hardware_report, smbios_model, macos_version)
|
smbios_model = self.s.customize_smbios_model(hardware_report, smbios_model, macos_version)
|
||||||
self.s.smbios_specific_options(hardware_report, smbios_model, macos_version, self.ac.patches, self.k)
|
self.s.smbios_specific_options(hardware_report, smbios_model, macos_version, self.ac.patches, self.k)
|
||||||
|
|||||||
+7
-12
@@ -3081,7 +3081,7 @@ DefinitionBlock ("", "SSDT", 2, "ZPSS", "UsbReset", 0x00001000)
|
|||||||
for patch in self.patches:
|
for patch in self.patches:
|
||||||
patch.checked = patch.name in selected_patches
|
patch.checked = patch.name in selected_patches
|
||||||
|
|
||||||
def customize_patch_selection(self, hardware_report, unsupported_devices):
|
def customize_patch_selection(self):
|
||||||
while True:
|
while True:
|
||||||
contents = []
|
contents = []
|
||||||
contents.append("")
|
contents.append("")
|
||||||
@@ -3097,8 +3097,6 @@ DefinitionBlock ("", "SSDT", 2, "ZPSS", "UsbReset", 0x00001000)
|
|||||||
contents.append("\033[1;36m")
|
contents.append("\033[1;36m")
|
||||||
contents.append("Note: You can select multiple kexts by entering their indices separated by commas (e.g., '1, 2, 3').")
|
contents.append("Note: You can select multiple kexts by entering their indices separated by commas (e.g., '1, 2, 3').")
|
||||||
contents.append("\033[0m")
|
contents.append("\033[0m")
|
||||||
contents.append("R. Restore defaults")
|
|
||||||
contents.append("")
|
|
||||||
contents.append("B. Back")
|
contents.append("B. Back")
|
||||||
contents.append("Q. Quit")
|
contents.append("Q. Quit")
|
||||||
contents.append("")
|
contents.append("")
|
||||||
@@ -3113,12 +3111,9 @@ DefinitionBlock ("", "SSDT", 2, "ZPSS", "UsbReset", 0x00001000)
|
|||||||
if option.lower() == "b":
|
if option.lower() == "b":
|
||||||
return
|
return
|
||||||
|
|
||||||
if option.lower() == "r":
|
indices = [int(i.strip()) -1 for i in option.split(",") if i.strip().isdigit()]
|
||||||
self.select_acpi_patches(hardware_report, unsupported_devices)
|
|
||||||
else:
|
for index in indices:
|
||||||
indices = [int(i.strip()) -1 for i in option.split(",") if i.strip().isdigit()]
|
if index >= 0 and index < len(self.patches):
|
||||||
|
patch = self.patches[index]
|
||||||
for index in indices:
|
patch.checked = not patch.checked
|
||||||
if index >= 0 and index < len(self.patches):
|
|
||||||
patch = self.patches[index]
|
|
||||||
patch.checked = not patch.checked
|
|
||||||
@@ -444,7 +444,7 @@ class KextMaestro:
|
|||||||
elif option.lower() == "n":
|
elif option.lower() == "n":
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def kext_configuration_menu(self, hardware_report, smbios_model, macos_version, acpi_patches):
|
def kext_configuration_menu(self, macos_version):
|
||||||
current_category = None
|
current_category = None
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
@@ -470,8 +470,6 @@ class KextMaestro:
|
|||||||
contents.append("- When a plugin of a kext is selected, the entire kext will be automatically selected.")
|
contents.append("- When a plugin of a kext is selected, the entire kext will be automatically selected.")
|
||||||
contents.append("- You can select multiple kexts by entering their indices separated by commas (e.g., '1, 2, 3').")
|
contents.append("- You can select multiple kexts by entering their indices separated by commas (e.g., '1, 2, 3').")
|
||||||
contents.append("\033[0m")
|
contents.append("\033[0m")
|
||||||
contents.append("R. Restore defaults")
|
|
||||||
contents.append("")
|
|
||||||
contents.append("B. Back")
|
contents.append("B. Back")
|
||||||
contents.append("Q. Quit")
|
contents.append("Q. Quit")
|
||||||
contents.append("")
|
contents.append("")
|
||||||
@@ -481,8 +479,6 @@ class KextMaestro:
|
|||||||
self.utils.head("Configure Kernel Extensions", resize=False)
|
self.utils.head("Configure Kernel Extensions", resize=False)
|
||||||
print(content)
|
print(content)
|
||||||
option = self.utils.request_input("Select your option: ")
|
option = self.utils.request_input("Select your option: ")
|
||||||
if option.lower() == "r":
|
|
||||||
self.select_required_kexts(hardware_report, smbios_model, macos_version, acpi_patches)
|
|
||||||
if option.lower() == "b":
|
if option.lower() == "b":
|
||||||
return
|
return
|
||||||
if option.lower() == "q":
|
if option.lower() == "q":
|
||||||
|
|||||||
Reference in New Issue
Block a user