mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-14 04:38:20 +10:00
Ensure ACPI path is correctly parsed
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -51,8 +51,8 @@ class PCIDevice:
|
||||
device = cls(vendor_id, device_id, int.from_bytes(properties["class-code"][:6], byteorder="little"), name=ioreg.io_name_t_to_str(ioreg.IORegistryEntryGetName(entry, None)[1]))
|
||||
if "model" in properties:
|
||||
device.model = properties["model"].strip(b"\0").decode()
|
||||
if "acpi_path" in properties:
|
||||
device.acpi_path = properties["acpi-path"].strip(b"\0").decode()
|
||||
if "acpi-path" in properties:
|
||||
device.acpi_path = properties["acpi-path"]
|
||||
device.populate_pci_path(entry)
|
||||
return device
|
||||
|
||||
|
||||
Reference in New Issue
Block a user