Add user-configurable ShowPicker

This commit is contained in:
Mykola Grymalyuk
2021-03-09 14:53:04 -07:00
parent a2c603d874
commit 7db3508387
4 changed files with 24 additions and 0 deletions
+1
View File
@@ -50,6 +50,7 @@ class Constants:
self.wifi_build = False
self.gui_mode = False
self.serial_settings = "Minimal"
self.showpicker = True
# Payload Location
# OpenCore
+7
View File
@@ -220,6 +220,13 @@ class BuildOpenCore:
if self.constants.opencore_debug == True:
print("- Enabling DEBUG OpenCore")
self.config["Misc"]["Debug"]["Target"] = 67
if self.constants.showpicker == True:
print("- Enabling ShowPicker")
self.config["Misc"]["Boot"]["ShowPicker"] = True
else:
print("- Hiding picker and enabling PollAppleHotKeys")
self.config["Misc"]["Boot"]["ShowPicker"] = False
self.config["Misc"]["Boot"]["PollAppleHotKeys"] = True
def set_smbios(self):
spoofed_model = self.model