mirror of
https://github.com/lzhoang2801/OpCore-Simplify.git
synced 2026-08-29 00:01:34 +08:00
Retain existing configuration defaults
This commit is contained in:
@@ -618,7 +618,7 @@ class ConfigProdigy:
|
||||
del config["#WARNING - 4"]
|
||||
|
||||
config["Booter"]["MmioWhitelist"] = self.mmio_whitelist(hardware_report.get("Motherboard").get("Chipset"))
|
||||
config["Booter"]["Patch"] = self.add_booter_patch(smbios_model, macos_version)
|
||||
config["Booter"]["Patch"] = self.add_booter_patch(smbios_model, macos_version) or config["Booter"]["Patch"]
|
||||
config["Booter"]["Quirks"]["AvoidRuntimeDefrag"] = not (hardware_report.get("BIOS").get("Firmware Type") == "Legacy" and self.utils.parse_darwin_version(macos_version) != self.utils.parse_darwin_version("20.0.0"))
|
||||
config["Booter"]["Quirks"]["DevirtualiseMmio"] = len(config["Booter"]["MmioWhitelist"]) != 0 or \
|
||||
hardware_report.get("Motherboard").get("Chipset") in chipset_data.IntelChipsets[112:] + chipset_data.IntelChipsets[90:100] or \
|
||||
@@ -674,8 +674,7 @@ class ConfigProdigy:
|
||||
)
|
||||
|
||||
config["Misc"]["BlessOverride"] = []
|
||||
config["Misc"]["Boot"]["HideAuxiliary"] = False
|
||||
config["Misc"]["Boot"]["PickerMode"] = "Builtin" if hardware_report.get("BIOS").get("Firmware Type") != "UEFI" else "External"
|
||||
config["Misc"]["Boot"]["PickerMode"] = "Builtin"
|
||||
config["Misc"]["Debug"]["AppleDebug"] = config["Misc"]["Debug"]["ApplePanic"] = False
|
||||
config["Misc"]["Debug"]["DisableWatchDog"] = True
|
||||
config["Misc"]["Entries"] = []
|
||||
@@ -688,6 +687,7 @@ class ConfigProdigy:
|
||||
del config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["#INFO (prev-lang:kbd)"]
|
||||
config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] = self.boot_args(hardware_report, macos_version, needs_oclp, kexts, config)
|
||||
config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["csr-active-config"] = self.utils.hex_to_bytes(self.csr_active_config(macos_version))
|
||||
config["NVRAM"]["Delete"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"].append("csr-active-config")
|
||||
config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["prev-lang:kbd"] = self.utils.hex_to_bytes("")
|
||||
|
||||
config["PlatformInfo"]["Generic"].update(self.smbios.generate_smbios(smbios_model))
|
||||
@@ -709,6 +709,7 @@ class ConfigProdigy:
|
||||
if kexts[kext_data.kext_index_by_name.get("BlueToolFixup")].checked:
|
||||
config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["bluetoothExternalDongleFailed"] = self.utils.hex_to_bytes("00")
|
||||
config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["bluetoothInternalControllerInfo"] = self.utils.hex_to_bytes("0000000000000000000000000000")
|
||||
config["NVRAM"]["Delete"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"].extend(["bluetoothExternalDongleFailed", "bluetoothInternalControllerInfo"])
|
||||
|
||||
if kexts[kext_data.kext_index_by_name.get("RestrictEvents")].checked:
|
||||
revpatch = []
|
||||
@@ -741,8 +742,5 @@ class ConfigProdigy:
|
||||
config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["revblock"] = ",".join(revblock)
|
||||
|
||||
config["NVRAM"]["Delete"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"] = list(config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"].keys())
|
||||
config["NVRAM"]["Delete"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"] = list(config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"].keys())
|
||||
if "run-efi-updater" in config["NVRAM"]["Delete"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]:
|
||||
config["NVRAM"]["Delete"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"].remove("run-efi-updater")
|
||||
|
||||
return config
|
||||
@@ -589,7 +589,7 @@ class KextMaestro:
|
||||
|
||||
for bundle in sorted_bundles:
|
||||
kernel_add.append({
|
||||
"Arch": "x86_64",
|
||||
"Arch": "Any",
|
||||
"BundlePath": bundle.get("BundlePath"),
|
||||
"Comment": "",
|
||||
"Enabled": bundle.get("Enabled"),
|
||||
|
||||
Reference in New Issue
Block a user