mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-17 21:24:40 +10:00
Enable TeraScale 2 patches by default on desktops
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
- Fix more IORegistry issues
|
- Fix more IORegistry issues
|
||||||
- Implement OpenCore GUI
|
- Implement OpenCore GUI
|
||||||
- Ensure symlinks are preserved
|
- Ensure symlinks are preserved
|
||||||
|
- Enable TeraScale 2 patches by default on desktops
|
||||||
|
|
||||||
## 0.2.2
|
## 0.2.2
|
||||||
|
|
||||||
|
|||||||
@@ -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:
|
if model == "MacBook8,1" and host_is_target:
|
||||||
# MacBook8,1 has an odd bug where it cannot install Monterey with Minimal spoofing
|
# MacBook8,1 has an odd bug where it cannot install Monterey with Minimal spoofing
|
||||||
self.constants.serial_settings == "Moderate"
|
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):
|
def patch_vol(self):
|
||||||
SysPatch.PatchSysVolume(self.constants.custom_model or self.constants.computer.real_model, self.constants).start_patch()
|
SysPatch.PatchSysVolume(self.constants.custom_model or self.constants.computer.real_model, self.constants).start_patch()
|
||||||
|
|||||||
@@ -71,6 +71,12 @@ class OpenCoreLegacyPatcher:
|
|||||||
if model == "MacBook8,1":
|
if model == "MacBook8,1":
|
||||||
# MacBook8,1 has an odd bug where it cannot install Monterey with Minimal spoofing
|
# MacBook8,1 has an odd bug where it cannot install Monterey with Minimal spoofing
|
||||||
self.constants.serial_settings == "Moderate"
|
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):
|
def build_opencore(self):
|
||||||
Build.BuildOpenCore(self.constants.custom_model or self.constants.computer.real_model, self.constants).build_opencore()
|
Build.BuildOpenCore(self.constants.custom_model or self.constants.computer.real_model, self.constants).build_opencore()
|
||||||
|
|||||||
@@ -125,6 +125,10 @@ class PatchSysVolume:
|
|||||||
self.unmount_drive()
|
self.unmount_drive()
|
||||||
print("- Patching complete")
|
print("- Patching complete")
|
||||||
print("\nPlease reboot the machine for patches to take effect")
|
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:
|
if self.constants.gui_mode is False:
|
||||||
input("Press [ENTER] to continue")
|
input("Press [ENTER] to continue")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user