Fix board ID call

Closes https://github.com/dortania/OpenCore-Legacy-Patcher/issues/571
This commit is contained in:
Mykola Grymalyuk
2021-10-15 09:33:34 -06:00
parent fa89865552
commit 0b3e45f7ba
+6 -3
View File
@@ -382,10 +382,13 @@ Q. Return to previous menu
elif change_menu == "2":
custom_smbios = input("Set new SMBIOS mode: ")
try:
test = self.constants.board_id[custom_smbios]
self.constants.override_smbios = custom_smbios
if smbios_data.smbios_dictionary[custom_smbios]["Board ID"] != None:
self.constants.override_smbios = custom_smbios
else:
print("Non-Intel SMBIOS, reverting to Default setting")
self.constants.override_smbios = "Default"
except KeyError:
print("Unsupported SMBIOS, defaulting to Default setting")
print("Unsupported SMBIOS, reverting to Default setting")
self.constants.override_smbios = "Default"
elif change_menu == "3":
print("Disabling SMBIOS spoof")