mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-23 19:40:15 +10:00
Avoid erroring
This commit is contained in:
@@ -144,29 +144,29 @@ class OpenCoreLegacyPatcher:
|
|||||||
else:
|
else:
|
||||||
print(f"- Unknown SMBIOS arg passed: {args.smbios_spoof}")
|
print(f"- Unknown SMBIOS arg passed: {args.smbios_spoof}")
|
||||||
|
|
||||||
if args.lb_delay:
|
# if args.lb_delay:
|
||||||
try:
|
# try:
|
||||||
self.constants.latebloom_delay = int(args.lb_delay)
|
# self.constants.latebloom_delay = int(args.lb_delay)
|
||||||
print(f"- Set LateBloom delay: {args.lb_delay}")
|
# print(f"- Set LateBloom delay: {args.lb_delay}")
|
||||||
except ValueError:
|
# except ValueError:
|
||||||
print(f"- Invalid LateBloom delay: {args.lb_delay}")
|
# print(f"- Invalid LateBloom delay: {args.lb_delay}")
|
||||||
|
|
||||||
if args.lb_range:
|
# if args.lb_range:
|
||||||
try:
|
# try:
|
||||||
self.constants.latebloom_range = int(args.lb_range)
|
# self.constants.latebloom_range = int(args.lb_range)
|
||||||
print(f"- Set LateBloom range: {args.lb_range}")
|
# print(f"- Set LateBloom range: {args.lb_range}")
|
||||||
except ValueError:
|
# except ValueError:
|
||||||
print(f"- Invalid LateBloom range: {args.lb_range}")
|
# print(f"- Invalid LateBloom range: {args.lb_range}")
|
||||||
|
|
||||||
if args.lb_debug:
|
# if args.lb_debug:
|
||||||
try:
|
# try:
|
||||||
self.constants.latebloom_debug = int(args.lb_debug)
|
# self.constants.latebloom_debug = int(args.lb_debug)
|
||||||
if self.constants.latebloom_debug in [0, 1]:
|
# if self.constants.latebloom_debug in [0, 1]:
|
||||||
print(f"- Set LateBloom debug: {args.lb_debug}")
|
# print(f"- Set LateBloom debug: {args.lb_debug}")
|
||||||
else:
|
# else:
|
||||||
print(f"- Invalid LateBloom debug: {args.lb_debug}")
|
# print(f"- Invalid LateBloom debug: {args.lb_debug}")
|
||||||
except ValueError:
|
# except ValueError:
|
||||||
print(f"- Invalid LateBloom range: {args.lb_debug}")
|
# print(f"- Invalid LateBloom range: {args.lb_debug}")
|
||||||
|
|
||||||
if args.support_all:
|
if args.support_all:
|
||||||
print("- Building for natively supported model")
|
print("- Building for natively supported model")
|
||||||
|
|||||||
Reference in New Issue
Block a user