mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 14:10:51 +10:00
Fix typos
This commit is contained in:
@@ -525,3 +525,39 @@ 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()
|
||||
Utilities.header(["Set latebloom properties"])
|
||||
print(
|
||||
f"""
|
||||
Set latebloom properties, useful for debugging boot stalls on
|
||||
pre-Sandy Bridge Macs.
|
||||
|
||||
Valid options:
|
||||
|
||||
1. Set delay (currently: {self.constants.latebloom_delay})
|
||||
2. Set range (currently: {self.constants.latebloom_range})
|
||||
3. Set debug (currently: {self.constants.latebloom_debug})
|
||||
"""
|
||||
)
|
||||
|
||||
change_menu = input("Set latebloom properties: ")
|
||||
if change_menu == "1":
|
||||
try:
|
||||
self.constants.latebloom_delay = int(input("Set delay: "))
|
||||
except ValueError:
|
||||
input("Invalid value, press [ENTER] to continue")
|
||||
elif change_menu == "2":
|
||||
try:
|
||||
self.constants.latebloom_range = int(input("Set range: "))
|
||||
except ValueError:
|
||||
input("Invalid value, press [ENTER] to continue")
|
||||
elif change_menu == "3":
|
||||
try:
|
||||
self.constants.latebloom_debug = int(input("Set debug: "))
|
||||
except ValueError:
|
||||
input("Invalid value, press [ENTER] to continue")
|
||||
else:
|
||||
print("Invalid option")
|
||||
|
||||
@@ -42,7 +42,7 @@ class Constants:
|
||||
self.debugenhancer_version = "1.0.3"
|
||||
self.innie_version = "1.3.0"
|
||||
self.fw_kext = "1.0.0"
|
||||
self.latebloom_version = "0.17"
|
||||
self.latebloom_version = "0.19"
|
||||
self.disk = ""
|
||||
self.patch_disk = ""
|
||||
self.patcher_support_pkg_version = "0.0.14" # PatcherSupportPkg
|
||||
|
||||
@@ -57,7 +57,7 @@ def latebloom_detection(model):
|
||||
else:
|
||||
lb_delay = "100"
|
||||
lb_range = "1"
|
||||
lb_debug = "0"
|
||||
lb_debug = "1"
|
||||
if get_nvram("boot-args", decode=False):
|
||||
if "latebloom=" in get_nvram("boot-args", decode=False):
|
||||
lb_delay = re.search(r"(?:[, ])latebloom=(\d+)", get_nvram("boot-args", decode=False))
|
||||
@@ -68,7 +68,7 @@ def latebloom_detection(model):
|
||||
if "lb_debug=" in get_nvram("boot-args", decode=False):
|
||||
lb_debug = re.search(r"(?:[, ])lb_debug=(\d+)", get_nvram("boot-args", decode=False))
|
||||
lb_debug = lb_debug[1]
|
||||
return int(lb_range), int(lb_range), int(lb_debug)
|
||||
return int(lb_delay), int(lb_range), int(lb_debug)
|
||||
|
||||
|
||||
def csr_decode(csr_active_config, os_sip):
|
||||
|
||||
Reference in New Issue
Block a user