mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 14:10:51 +10:00
Fix board ID call
Closes https://github.com/dortania/OpenCore-Legacy-Patcher/issues/571
This commit is contained in:
@@ -382,10 +382,13 @@ Q. Return to previous menu
|
|||||||
elif change_menu == "2":
|
elif change_menu == "2":
|
||||||
custom_smbios = input("Set new SMBIOS mode: ")
|
custom_smbios = input("Set new SMBIOS mode: ")
|
||||||
try:
|
try:
|
||||||
test = self.constants.board_id[custom_smbios]
|
if smbios_data.smbios_dictionary[custom_smbios]["Board ID"] != None:
|
||||||
self.constants.override_smbios = custom_smbios
|
self.constants.override_smbios = custom_smbios
|
||||||
|
else:
|
||||||
|
print("Non-Intel SMBIOS, reverting to Default setting")
|
||||||
|
self.constants.override_smbios = "Default"
|
||||||
except KeyError:
|
except KeyError:
|
||||||
print("Unsupported SMBIOS, defaulting to Default setting")
|
print("Unsupported SMBIOS, reverting to Default setting")
|
||||||
self.constants.override_smbios = "Default"
|
self.constants.override_smbios = "Default"
|
||||||
elif change_menu == "3":
|
elif change_menu == "3":
|
||||||
print("Disabling SMBIOS spoof")
|
print("Disabling SMBIOS spoof")
|
||||||
|
|||||||
Reference in New Issue
Block a user