mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-14 04:38:20 +10:00
Add basic debug toggle
Currently not accessible via user-input
This commit is contained in:
@@ -36,6 +36,11 @@ class Constants:
|
||||
self.custom_mxm_gpu: str = None
|
||||
self.current_gpuv: str = None
|
||||
self.current_gpud: str = None
|
||||
|
||||
# Debug Settings
|
||||
self.opencore_debug = False
|
||||
self.kext_debug = False
|
||||
self.verbose_debug = True
|
||||
# Payload Location
|
||||
# OpenCore
|
||||
@property
|
||||
|
||||
@@ -193,6 +193,14 @@ class BuildOpenCore:
|
||||
self.config["UEFI"]["Drivers"] = ["OpenCanopy.efi", "OpenRuntime.efi"]
|
||||
# Hibernation Patch
|
||||
self.config["Booter"]["Quirks"]["DiscardHibernateMap"] = True
|
||||
#DEBUG Settings
|
||||
if self.constants.verbose_debug == True:
|
||||
self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " -v"
|
||||
if self.constants.kext_debug == True:
|
||||
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:
|
||||
self.config["Misc"]["Debug"]["Target"] = 67
|
||||
|
||||
def set_smbios(self):
|
||||
spoofed_model = self.model
|
||||
|
||||
@@ -804,7 +804,7 @@
|
||||
<key>SystemAudioVolume</key>
|
||||
<data>Rg==</data>
|
||||
<key>boot-args</key>
|
||||
<string>-v keepsyms=1 debug=0x100</string>
|
||||
<string>keepsyms=1 debug=0x100</string>
|
||||
<key>run-efi-updater</key>
|
||||
<string>No</string>
|
||||
<key>csr-active-config</key>
|
||||
|
||||
Reference in New Issue
Block a user