mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-22 11:00:16 +10:00
device_probe.py: Fix missing pci check
This commit is contained in:
@@ -52,6 +52,7 @@ class PCIDevice:
|
|||||||
if type(ioname) is bytes:
|
if type(ioname) is bytes:
|
||||||
ioname = ioname.strip(b"\0").decode()
|
ioname = ioname.strip(b"\0").decode()
|
||||||
|
|
||||||
|
if ioname.startswith("pci"):
|
||||||
vendor_id_unspoofed, device_id_unspoofed = (int(i, 16) for i in ioname[3:].split(","))
|
vendor_id_unspoofed, device_id_unspoofed = (int(i, 16) for i in ioname[3:].split(","))
|
||||||
if anti_spoof:
|
if anti_spoof:
|
||||||
vendor_id = vendor_id_unspoofed
|
vendor_id = vendor_id_unspoofed
|
||||||
|
|||||||
Reference in New Issue
Block a user