mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-22 11:00:16 +10:00
build: Skip string conversion for check
This commit is contained in:
@@ -192,13 +192,13 @@ class build_graphics_audio:
|
||||
if not support.build_support(self.model, self.constants, self.config).get_kext_by_bundle_path("WhateverGreen.kext")["Enabled"] is True:
|
||||
# Ensure WEG is enabled as we need if for Backlight patching
|
||||
support.build_support(self.model, self.constants, self.config).enable_kext("WhateverGreen.kext", self.constants.whatevergreen_version, self.constants.whatevergreen_path)
|
||||
|
||||
if utilities.friendly_hex(self.computer.dgpu.device_id) == "7340":
|
||||
|
||||
if self.computer.dgpu.device_id == 0x7340:
|
||||
logging.info(f"- Adding AMD RX5500XT vBIOS injection")
|
||||
self.config["DeviceProperties"]["Add"][backlight_path] = {"shikigva": 128, "unfairgva": 1, "agdpmod": "pikera", "rebuild-device-tree": 1, "enable-gva-support": 1, "ATY,bin_image": binascii.unhexlify(video_bios_data.RX5500XT_64K) }
|
||||
logging.info(f"- Adding AMD RX5500XT boot-args")
|
||||
self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " agdpmod=pikera applbkl=3"
|
||||
elif utilities.friendly_hex(self.computer.dgpu.device_id) == "6981":
|
||||
elif self.computer.dgpu.device_id == 0x6981:
|
||||
logging.info(f"- Adding AMD WX3200 device spoofing")
|
||||
self.config["DeviceProperties"]["Add"][backlight_path] = {"shikigva": 128, "unfairgva": 1, "agdpmod": "pikera", "rebuild-device-tree": 1, "enable-gva-support": 1, "model": "AMD Radeon Pro WX 3200", "device-id": binascii.unhexlify("FF67")}
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user