mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-14 19:36:29 +10:00
Revert Kryptonite backend
This commit is contained in:
@@ -129,10 +129,10 @@ system_profiler SPHardwareDataType | grep 'Model Identifier'
|
||||
f"Allow OpenCore on native Models:\tCurrently {self.constants.allow_oc_everywhere}",
|
||||
CliMenu.MenuOptions(self.constants.custom_model or self.computer.real_model, self.constants).allow_native_models,
|
||||
],
|
||||
#[
|
||||
# [
|
||||
# f"Latebloom settings:\t\t\tDelay {self.constants.latebloom_delay}, Range {self.constants.latebloom_range}, Debug {self.constants.latebloom_debug}",
|
||||
# CliMenu.MenuOptions(self.constants.custom_model or self.computer.real_model, self.constants).latebloom_settings,
|
||||
#],
|
||||
# ],
|
||||
["Advanced Patch Settings, for developers only", self.advanced_patcher_settings],
|
||||
]
|
||||
|
||||
|
||||
@@ -525,7 +525,6 @@ Note 2: This setting only affects iMac13,x with dGPUs
|
||||
self.constants.allow_ivy_igpu = False
|
||||
else:
|
||||
print("Invalid option")
|
||||
|
||||
|
||||
def latebloom_settings(self):
|
||||
Utilities.cls()
|
||||
@@ -561,42 +560,3 @@ Valid options:
|
||||
input("Invalid value, press [ENTER] to continue")
|
||||
else:
|
||||
print("Invalid option")
|
||||
|
||||
def kryptonite_settings(self):
|
||||
Utilities.cls()
|
||||
Utilities.header(["Set Kryptonite properties"])
|
||||
print(
|
||||
f"""
|
||||
Set Kryptonite properties, used for enhacning eGPUs.
|
||||
|
||||
Valid options:
|
||||
|
||||
1. Enable Kryptonite (currently: {self.constants.kryptonite_enabled})
|
||||
2. Set eGPU Vendor (currently: {self.constants.kryptonite_vendor})
|
||||
"""
|
||||
)
|
||||
|
||||
change_menu = input("Set Kryptonite properties: ")
|
||||
if change_menu == "1":
|
||||
change_menu = input("Enable Kryptonite?(y/n): ")
|
||||
if change_menu in {"y", "Y", "yes", "Yes"}:
|
||||
self.constants.kryptonite_enabled = True
|
||||
elif change_menu in {"n", "N", "no", "No"}:
|
||||
self.constants.kryptonite_enabled = False
|
||||
else:
|
||||
print("Invalid option")
|
||||
|
||||
elif change_menu == "2":
|
||||
print("""Set Vendor:
|
||||
1. AMD
|
||||
2. Nvidia
|
||||
""")
|
||||
change_menu = input("Set eGPU Vendor(1/2): ")
|
||||
if change_menu == "1":
|
||||
self.constants.kryptonite_vendor = "AMD"
|
||||
elif change_menu == "2":
|
||||
self.constants.kryptonite_vendor = "Nvidia"
|
||||
else:
|
||||
print("Invalid option")
|
||||
else:
|
||||
print("Invalid option")
|
||||
|
||||
@@ -96,9 +96,6 @@ class Constants:
|
||||
self.latebloom_delay = 0
|
||||
self.latebloom_range = 0
|
||||
self.latebloom_debug = 0
|
||||
self.kryptonite_enabled = False
|
||||
self.kryptonite_vendor = "AMD"
|
||||
self.kryptonite_nhi = 0
|
||||
|
||||
# OS Versions
|
||||
self.tiger = 8
|
||||
|
||||
Reference in New Issue
Block a user