mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-22 19:10:15 +10:00
Fix formatting
This commit is contained in:
@@ -116,7 +116,7 @@ system_profiler SPHardwareDataType | grep 'Model Identifier'
|
|||||||
[f"Allow FireWire Boot:\t\tCurrently {self.constants.firewire_boot}", CliMenu.MenuOptions(self.constants.custom_model or self.computer.real_model, self.constants).allow_firewire],
|
[f"Allow FireWire Boot:\t\tCurrently {self.constants.firewire_boot}", CliMenu.MenuOptions(self.constants.custom_model or self.computer.real_model, self.constants).allow_firewire],
|
||||||
[f"Allow NVMe Boot:\t\t\tCurrently {self.constants.nvme_boot}", CliMenu.MenuOptions(self.constants.custom_model or self.computer.real_model, self.constants).allow_nvme],
|
[f"Allow NVMe Boot:\t\t\tCurrently {self.constants.nvme_boot}", CliMenu.MenuOptions(self.constants.custom_model or self.computer.real_model, self.constants).allow_nvme],
|
||||||
[f"Allow Wake on WLAN:\t\t\tCurrently {self.constants.enable_wake_on_wlan}", CliMenu.MenuOptions(self.constants.custom_model or self.computer.real_model, self.constants).allow_wowl],
|
[f"Allow Wake on WLAN:\t\t\tCurrently {self.constants.enable_wake_on_wlan}", CliMenu.MenuOptions(self.constants.custom_model or self.computer.real_model, self.constants).allow_wowl],
|
||||||
[f"Allow Ivy iMac iGPU:\t\t\tCurrently {self.constants.allow_ivy_igpu}", CliMenu.MenuOptions(self.constants.custom_model or self.computer.real_model, self.constants).allow_ivy],
|
[f"Allow Ivy iMac iGPU:\t\tCurrently {self.constants.allow_ivy_igpu}", CliMenu.MenuOptions(self.constants.custom_model or self.computer.real_model, self.constants).allow_ivy],
|
||||||
[f"Disable AMFI:\t\t\tCurrently {self.constants.disable_amfi}", CliMenu.MenuOptions(self.constants.custom_model or self.computer.real_model, self.constants).set_amfi],
|
[f"Disable AMFI:\t\t\tCurrently {self.constants.disable_amfi}", CliMenu.MenuOptions(self.constants.custom_model or self.computer.real_model, self.constants).set_amfi],
|
||||||
[
|
[
|
||||||
f"Set SIP and SecureBootModel:\tSIP: {self.constants.sip_status} SBM: {self.constants.secure_status}",
|
f"Set SIP and SecureBootModel:\tSIP: {self.constants.sip_status} SBM: {self.constants.secure_status}",
|
||||||
|
|||||||
@@ -411,16 +411,17 @@ class BuildOpenCore:
|
|||||||
self.config["DeviceProperties"]["Add"][self.gfx0_path] = {"agdpmod": "vit9696"}
|
self.config["DeviceProperties"]["Add"][self.gfx0_path] = {"agdpmod": "vit9696"}
|
||||||
|
|
||||||
if self.model in ["iMac13,1", "iMac13,2", "iMac13,3"]:
|
if self.model in ["iMac13,1", "iMac13,2", "iMac13,3"]:
|
||||||
if self.computer.dgpu and self.constants.allow_ivy_igpu is False:
|
if self.computer.dgpu:
|
||||||
print("- Disabling iGPU to fix sleep support in macOS 12")
|
if self.constants.allow_ivy_igpu is False:
|
||||||
self.config["DeviceProperties"]["Add"][self.gfx0_path] = {"agdpmod": "vit9696", "shikigva": 256}
|
print("- Disabling iGPU to fix sleep support in macOS 12")
|
||||||
self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x2,0x0)"] = {
|
self.config["DeviceProperties"]["Add"][self.gfx0_path] = {"agdpmod": "vit9696", "shikigva": 256}
|
||||||
"name": binascii.unhexlify("23646973706C6179"),
|
self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x2,0x0)"] = {
|
||||||
"IOName": "#display",
|
"name": binascii.unhexlify("23646973706C6179"),
|
||||||
"class-code": binascii.unhexlify("FFFFFFFF"),
|
"IOName": "#display",
|
||||||
}
|
"class-code": binascii.unhexlify("FFFFFFFF"),
|
||||||
elif self.constants.allow_ivy_igpu is True:
|
}
|
||||||
print("- Enabling iGPU upon request")
|
else:
|
||||||
|
print("- Enabling iGPU upon request")
|
||||||
|
|
||||||
# Audio Patch
|
# Audio Patch
|
||||||
if self.model in ModelArray.LegacyAudio:
|
if self.model in ModelArray.LegacyAudio:
|
||||||
|
|||||||
@@ -506,13 +506,14 @@ be prepared if enabling.
|
|||||||
print(
|
print(
|
||||||
"""
|
"""
|
||||||
For iMac13,x systems with a Nvidia dGPU, the iGPU is disabled by default to
|
For iMac13,x systems with a Nvidia dGPU, the iGPU is disabled by default to
|
||||||
allow Delta Updates, FileVault, SIP and such on macOS Monterey. However due to this,
|
allow Delta Updates, FileVault, SIP and such on macOS Monterey. However due to
|
||||||
DRM and QuickSync support may be broken.
|
this, DRM and QuickSync support may be broken.
|
||||||
|
|
||||||
Users can choose to override this option but be aware SIP and FileVault must be disabled
|
Users can choose to override this option but be aware SIP and FileVault must be
|
||||||
to run root patches to fix DRM and QuickSync.
|
disabled to run root patches to fix DRM and QuickSync.
|
||||||
|
|
||||||
Note: This does not apply for Big Sur, the iGPU can be renabled without consequence
|
Note: This does not apply for Big Sur, the iGPU can be renabled without
|
||||||
|
consequence
|
||||||
Note 2: This setting only affects iMac13,x with dGPUs
|
Note 2: This setting only affects iMac13,x with dGPUs
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user