Enable TeraScale 2 patches by default on desktops

This commit is contained in:
Mykola Grymalyuk
2021-06-27 23:09:28 -06:00
parent 98da3a16a8
commit 2c4b29400e
4 changed files with 17 additions and 0 deletions
+1
View File
@@ -5,6 +5,7 @@
- Fix more IORegistry issues
- Implement OpenCore GUI
- Ensure symlinks are preserved
- Enable TeraScale 2 patches by default on desktops
## 0.2.2
+6
View File
@@ -185,6 +185,12 @@ If you plan to create the USB for another machine, please select the "Change Mod
if model == "MacBook8,1" and host_is_target:
# MacBook8,1 has an odd bug where it cannot install Monterey with Minimal spoofing
self.constants.serial_settings == "Moderate"
if (
host_is_target
and model not in ["MacBookPro8,2", "MacBookPro8,3"]
and self.computer.dgpu
and self.computer.dgpu.arch in device_probe.AMD.Archs.TeraScale_2) or self.model in ["Macmini5,2", "iMac12,1", "iMac12,2"]:
self.constants.terascale_2_patch == True
def patch_vol(self):
SysPatch.PatchSysVolume(self.constants.custom_model or self.constants.computer.real_model, self.constants).start_patch()
+6
View File
@@ -71,6 +71,12 @@ class OpenCoreLegacyPatcher:
if model == "MacBook8,1":
# MacBook8,1 has an odd bug where it cannot install Monterey with Minimal spoofing
self.constants.serial_settings == "Moderate"
if (
host_is_target
and model not in ["MacBookPro8,2", "MacBookPro8,3"]
and self.computer.dgpu
and self.computer.dgpu.arch in device_probe.AMD.Archs.TeraScale_2) or self.model in ["Macmini5,2", "iMac12,1", "iMac12,2"]:
self.constants.terascale_2_patch == True
def build_opencore(self):
Build.BuildOpenCore(self.constants.custom_model or self.constants.computer.real_model, self.constants).build_opencore()
+4
View File
@@ -125,6 +125,10 @@ class PatchSysVolume:
self.unmount_drive()
print("- Patching complete")
print("\nPlease reboot the machine for patches to take effect")
if self.amd_ts2 is True:
print("\nPlease note that with ATI TeraScale 2 GPUs, you may experience colour strobing on reboot")
print("Please use SwitchResX or ResXtreme to force 1 million colours on your monitor to fix this")
print("If you are epileptic, please ask for someone to aid you or set million colour before rebooting")
if self.constants.gui_mode is False:
input("Press [ENTER] to continue")