mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-13 20:28:21 +10:00
Fix typos
This commit is contained in:
@@ -129,6 +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,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):
|
||||
|
||||
Binary file not shown.
BIN
payloads/Kexts/Misc/latebloom-v0.19.zip
Normal file
BIN
payloads/Kexts/Misc/latebloom-v0.19.zip
Normal file
Binary file not shown.
Reference in New Issue
Block a user