Add ACPI path verification for DeviceProperty injection

Ref: https://github.com/dortania/OpenCore-Legacy-Patcher/issues/451
This commit is contained in:
Mykola Grymalyuk
2021-08-30 17:36:06 -06:00
parent 6ca3e3524e
commit 077af5afb3
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -539,7 +539,7 @@ class BuildOpenCore:
print(f"- Found dGPU ({i + 1}): {Utilities.friendly_hex(device.vendor_id)}:{Utilities.friendly_hex(device.device_id)}")
self.config["#Revision"][f"Hardware-MacPro-dGPU-{i + 1}"] = f"{Utilities.friendly_hex(device.vendor_id)}:{Utilities.friendly_hex(device.device_id)}"
if device.pci_path:
if device.pci_path and device.acpi_path:
print(f"- Found dGPU ({i + 1}) at {device.pci_path}")
if isinstance(device, device_probe.AMD):
print("- Adding Mac Pro, Xserve DRM patches")