Expand IOHIDFamily Patch to all Nvidia chipsets

This commit is contained in:
Mykola Grymalyuk
2020-12-01 14:26:42 -07:00
parent a8e2d1ad14
commit d15d691386
2 changed files with 7 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
# OpenCore Legacy Patcher changelog
## 0.0.2
- Expand IOHIDFamily Patch to all Nvidia chipsets
## 0.0.1
- Inital developer preview

View File

@@ -161,6 +161,12 @@ def BuildEFI():
"#PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)",
"PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)"
)
if current_model in ModelArray.LegacyHID:
Versions.plist_data = Versions.plist_data.replace(
"<false/><!--IOHIDFamily-->",
"<true/><!--IOHIDFamily-->"
)
usb_map_path = os.path.join(Versions.current_path, "payloads/Kexts/Maps/Zip/" "USB-Map-%s.zip" % current_model)
if os.path.exists(usb_map_path):
print("- Adding USB Map for %s" % current_model)