mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-14 04:38:20 +10:00
Fix crash
This commit is contained in:
@@ -52,14 +52,14 @@ class pci_probe:
|
||||
vendor_id = self.hexswap(binascii.hexlify(devices[0]["vendor-id"]).decode()[:4])
|
||||
device_id = self.hexswap(binascii.hexlify(devices[0]["device-id"]).decode()[:4])
|
||||
try:
|
||||
acpi_path = devices[0]["acpi-path"]
|
||||
return vendor_id, device_id, acpi_path
|
||||
#acpi_path = devices[0]["acpi-path"]
|
||||
return vendor_id, device_id
|
||||
except KeyError:
|
||||
print(f"- No ACPI entry found for {gpu_type}")
|
||||
return vendor_id, device_id, ""
|
||||
return vendor_id, device_id
|
||||
except ValueError:
|
||||
print(f"- No IOService entry found for {gpu_type}")
|
||||
return "", "", ""
|
||||
return "", ""
|
||||
|
||||
def wifi_probe(self):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user