build.py: Resolve check_firewire() bug

Closes https://github.com/dortania/OpenCore-Legacy-Patcher/issues/842
This commit is contained in:
Mykola Grymalyuk
2021-12-24 09:20:47 -07:00
parent aa8643f247
commit 9b5d25b2be

View File

@@ -481,11 +481,13 @@ class BuildOpenCore:
def check_firewire(model):
# MacBooks never supported FireWire
# Pre-Thunderbolt MacBook Airs as well
if model.startswith("MacBook"):
return False
if model.startswith("MacBookPro"):
return True
elif model.startswith("MacBookAir"):
if smbios_data.smbios_dictionary[self.model]["CPU Generation"] < cpu_data.cpu_data.sandy_bridge.value:
return False
elif model.startswith("MacBook"):
return False
else:
return True