mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-22 02:50:15 +10:00
Add User-configurable verbose and debug
Closes https://github.com/dortania/Opencore-Legacy-Patcher/issues/10 References https://github.com/dortania/Opencore-Legacy-Patcher/issues/74
This commit is contained in:
@@ -38,10 +38,14 @@ class Constants:
|
||||
self.current_gpuv: str = None
|
||||
self.current_gpud: str = None
|
||||
|
||||
# Debug Settings
|
||||
# Patcher Settings
|
||||
self.opencore_debug = False
|
||||
self.kext_debug = False
|
||||
self.verbose_debug = True
|
||||
self.os_support = 11.0
|
||||
self.min_os_support = 11.0
|
||||
self.max_os_support = 11.0
|
||||
|
||||
# Payload Location
|
||||
# OpenCore
|
||||
@property
|
||||
|
||||
@@ -793,4 +793,8 @@ NightShiftExclude = [
|
||||
"iMac14,1",
|
||||
"iMac14,2",
|
||||
"iMac14,3",
|
||||
]
|
||||
|
||||
UGAtoGOP = [
|
||||
"MacPro3,1"
|
||||
]
|
||||
@@ -192,13 +192,22 @@ class BuildOpenCore:
|
||||
shutil.rmtree(self.constants.resources_path, onerror=rmtree_handler)
|
||||
shutil.copy(self.constants.gui_path, self.constants.oc_folder)
|
||||
self.config["UEFI"]["Drivers"] = ["OpenCanopy.efi", "OpenRuntime.efi"]
|
||||
|
||||
# Add UGA to GOP layer
|
||||
if self.model in ModelArray.UGAtoGOP:
|
||||
print("- Adding UGA to GOP Patch")
|
||||
self.config["UEFI"]["ProtocolOverrides"]["GopPassThrough"] = True
|
||||
|
||||
#DEBUG Settings
|
||||
if self.constants.verbose_debug == True:
|
||||
print("- Enabling Verbose boot")
|
||||
self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " -v"
|
||||
if self.constants.kext_debug == True:
|
||||
print("- Enabling DEBUG Kexts")
|
||||
self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " -liludbgall"
|
||||
self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " msgbuf=1048576"
|
||||
if self.constants.opencore_debug == True:
|
||||
print("- Enabling DEBUG OpenCore")
|
||||
self.config["Misc"]["Debug"]["Target"] = 67
|
||||
|
||||
def set_smbios(self):
|
||||
|
||||
Reference in New Issue
Block a user