From 3c4795fb47e8e7f2a64c36ca6e7761dcd67f7fdc Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Mon, 28 Jun 2021 00:21:54 -0600 Subject: [PATCH] Fix typo --- OCLP-CLI.command | 10 +++++++--- OpenCore-Patcher.command | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/OCLP-CLI.command b/OCLP-CLI.command index ff882ec8b..631a9b757 100755 --- a/OCLP-CLI.command +++ b/OCLP-CLI.command @@ -185,12 +185,16 @@ 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 ( + 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 + and self.computer.dgpu.arch in device_probe.AMD.Archs.TeraScale_2) + or model in ["Macmini5,2", "iMac12,1", "iMac12,2"] + ): + self.constants.terascale_2_patch = True + else: + self.constants.terascale_2_patch = False def patch_vol(self): SysPatch.PatchSysVolume(self.constants.custom_model or self.constants.computer.real_model, self.constants).start_patch() diff --git a/OpenCore-Patcher.command b/OpenCore-Patcher.command index 2f77369be..37fd1025a 100755 --- a/OpenCore-Patcher.command +++ b/OpenCore-Patcher.command @@ -71,12 +71,16 @@ 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 ( + 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 model in ["Macmini5,2", "iMac12,1", "iMac12,2"]: - self.constants.terascale_2_patch == True + and self.computer.dgpu.arch in device_probe.AMD.Archs.TeraScale_2) + or model in ["Macmini5,2", "iMac12,1", "iMac12,2"] + ): + self.constants.terascale_2_patch = True + else: + self.constants.terascale_2_patch = False def build_opencore(self): Build.BuildOpenCore(self.constants.custom_model or self.constants.computer.real_model, self.constants).build_opencore()