mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-24 03:50:14 +10:00
Merge pull request #1127 from dortania/fix-apple-logo-oversight
Add SkipLogo patch for Macs natively supporting Monterey or newer
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
# OpenCore Legacy Patcher changelog
|
# OpenCore Legacy Patcher changelog
|
||||||
|
|
||||||
## 1.5.0
|
## 1.5.0
|
||||||
|
- Patch SkipLogo on Macs that natively support Monterey or newer
|
||||||
|
- Resolves missing Apple logo on boot screen
|
||||||
- Increment Binaries:
|
- Increment Binaries:
|
||||||
- OpenCorePkg 0.9.9 - release
|
- OpenCorePkg 0.9.9 - release
|
||||||
|
|
||||||
|
|||||||
@@ -265,6 +265,30 @@
|
|||||||
<key>Skip</key>
|
<key>Skip</key>
|
||||||
<integer>0</integer>
|
<integer>0</integer>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>Arch</key>
|
||||||
|
<string>x86_64</string>
|
||||||
|
<key>Comment</key>
|
||||||
|
<string>Patch SkipLogo</string>
|
||||||
|
<key>Count</key>
|
||||||
|
<integer>0</integer>
|
||||||
|
<key>Enabled</key>
|
||||||
|
<false/>
|
||||||
|
<key>Find</key>
|
||||||
|
<data>UwBrAGkAcABMAG8AZwBv</data>
|
||||||
|
<key>Identifier</key>
|
||||||
|
<string>Apple</string>
|
||||||
|
<key>Limit</key>
|
||||||
|
<integer>0</integer>
|
||||||
|
<key>Mask</key>
|
||||||
|
<data></data>
|
||||||
|
<key>Replace</key>
|
||||||
|
<data>QQBrAGkAcABMAG8AZwBv</data>
|
||||||
|
<key>ReplaceMask</key>
|
||||||
|
<data></data>
|
||||||
|
<key>Skip</key>
|
||||||
|
<integer>0</integer>
|
||||||
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>Quirks</key>
|
<key>Quirks</key>
|
||||||
<dict>
|
<dict>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ from pathlib import Path
|
|||||||
|
|
||||||
from resources import constants, generate_smbios, device_probe
|
from resources import constants, generate_smbios, device_probe
|
||||||
from resources.build import support
|
from resources.build import support
|
||||||
from data import smbios_data, cpu_data
|
from data import smbios_data, cpu_data, os_data
|
||||||
|
|
||||||
|
|
||||||
class BuildFirmware:
|
class BuildFirmware:
|
||||||
@@ -38,6 +38,22 @@ class BuildFirmware:
|
|||||||
self._acpi_handling()
|
self._acpi_handling()
|
||||||
self._firmware_driver_handling()
|
self._firmware_driver_handling()
|
||||||
self._firmware_compatibility_handling()
|
self._firmware_compatibility_handling()
|
||||||
|
self._apple_logo_handling()
|
||||||
|
|
||||||
|
def _apple_logo_handling(self) -> None:
|
||||||
|
"""
|
||||||
|
Apple logo Handling
|
||||||
|
"""
|
||||||
|
|
||||||
|
# Macs that natively support Monterey (excluding MacPro6,1 and Macmini7,1) won't have boot.efi draw the Apple logo.
|
||||||
|
# This causes a cosmetic issue when booting through OpenCore, as the Apple logo will be missing.
|
||||||
|
|
||||||
|
if not self.model in smbios_data.smbios_dictionary:
|
||||||
|
return
|
||||||
|
|
||||||
|
if smbios_data.smbios_dictionary[self.model]["Max OS Supported"] >= os_data.os_data.monterey and self.model not in ["MacPro6,1", "Macmini7,1"]:
|
||||||
|
logging.info("- Enabling Boot Logo patch")
|
||||||
|
support.BuildSupport(self.model, self.constants, self.config).get_item_by_kv(self.config["Booter"]["Patch"], "Comment", "Patch SkipLogo")["Enabled"] = True
|
||||||
|
|
||||||
|
|
||||||
def _power_management_handling(self) -> None:
|
def _power_management_handling(self) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user