mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 22:20:53 +10:00
Revert Kryptonite backend
This commit is contained in:
@@ -526,7 +526,6 @@ Note 2: This setting only affects iMac13,x with dGPUs
|
|||||||
else:
|
else:
|
||||||
print("Invalid option")
|
print("Invalid option")
|
||||||
|
|
||||||
|
|
||||||
def latebloom_settings(self):
|
def latebloom_settings(self):
|
||||||
Utilities.cls()
|
Utilities.cls()
|
||||||
Utilities.header(["Set latebloom properties"])
|
Utilities.header(["Set latebloom properties"])
|
||||||
@@ -561,42 +560,3 @@ Valid options:
|
|||||||
input("Invalid value, press [ENTER] to continue")
|
input("Invalid value, press [ENTER] to continue")
|
||||||
else:
|
else:
|
||||||
print("Invalid option")
|
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_delay = 0
|
||||||
self.latebloom_range = 0
|
self.latebloom_range = 0
|
||||||
self.latebloom_debug = 0
|
self.latebloom_debug = 0
|
||||||
self.kryptonite_enabled = False
|
|
||||||
self.kryptonite_vendor = "AMD"
|
|
||||||
self.kryptonite_nhi = 0
|
|
||||||
|
|
||||||
# OS Versions
|
# OS Versions
|
||||||
self.tiger = 8
|
self.tiger = 8
|
||||||
|
|||||||
Reference in New Issue
Block a user