From ca2fd695b39177dcb947ae75dbde9438f1f83c49 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Thu, 21 Oct 2021 11:34:46 -0600 Subject: [PATCH] Fix crashing on dict append Closes https://github.com/dortania/OpenCore-Legacy-Patcher/issues/597 --- resources/build.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/build.py b/resources/build.py index ac24d46d0..3629284b5 100644 --- a/resources/build.py +++ b/resources/build.py @@ -447,6 +447,7 @@ class BuildOpenCore: self.enable_kext("IOFireWireSBP2.kext", self.constants.fw_kext, self.constants.fw_sbp2_path) self.enable_kext("IOFireWireSerialBusProtocolTransport.kext", self.constants.fw_kext, self.constants.fw_bus_path) self.get_kext_by_bundle_path("IOFireWireFamily.kext/Contents/PlugIns/AppleFWOHCI.kext")["Enabled"] = True + def backlight_path_detection(self): if not self.constants.custom_model and self.computer.dgpu and self.computer.dgpu.pci_path: @@ -522,13 +523,13 @@ class BuildOpenCore: if self.computer and self.computer.dgpu: if self.computer.dgpu.arch == device_probe.AMD.Archs.Legacy_GCN_7000: # Add Power Gate Patches - self.config["DeviceProperties"]["Add"][backlight_path] += { + self.config["DeviceProperties"]["Add"][backlight_path].update({ "rebuild-device-tree": 1, "CAIL,CAIL_DisableDrmdmaPowerGating": 1, "CAIL,CAIL_DisableGfxCGPowerGating": 1, "CAIL,CAIL_DisableUVDPowerGating": 1, "CAIL,CAIL_DisableVCEPowerGating": 1, - } + }) # Check GPU Vendor if self.constants.metal_build is True: