Add better variable presentation

This commit is contained in:
Mykola Grymalyuk
2021-07-20 09:30:14 -06:00
parent e94264f039
commit ff00e2683e
2 changed files with 6 additions and 6 deletions

View File

@@ -178,7 +178,7 @@ class BuildOpenCore:
self.get_item_by_kv(self.config["Kernel"]["Patch"], "Identifier", "com.apple.driver.AppleSMC")["Enabled"] = True
if self.get_kext_by_bundle_path("latebloom.kext")["Enabled"] is True:
print(f"- Setting latebloom delay of {self.constants.latebloom_delay}, range {self.constants.latebloom_range}, debug {self.constants.latebloom_debug}")
print(f"- Setting latebloom delay of {self.constants.latebloom_delay}ms, range {self.constants.latebloom_range}ms, debug {bool(self.constants.latebloom_debug)}")
self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"][
"boot-args"
] += f" latebloom={self.constants.latebloom_delay}, lb_range={self.constants.latebloom_range}, lb_debug={self.constants.latebloom_debug}"

View File

@@ -536,9 +536,9 @@ 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})
1. Set delay (currently: {self.constants.latebloom_delay}ms)
2. Set range (currently: {self.constants.latebloom_range}ms)
3. Set debug (currently: {bool(self.constants.latebloom_debug)})
"""
)
@@ -555,8 +555,8 @@ Valid options:
input("Invalid value, press [ENTER] to continue")
elif change_menu == "3":
try:
print("Currently supports either 0(debug disabled) or 1(debug enabled)")
latebloom_debug = int(input("Set debug: "))
print("Currently supports either 0(False) or 1(True)")
latebloom_debug = int(input("Set debug(0/1): "))
if latebloom_debug not in [0, 1]:
input("Invalid value, press [ENTER] to continue")
else: