mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-13 20:28:21 +10:00
Add SkipLogo patch
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# OpenCore Legacy Patcher changelog
|
||||
|
||||
## 1.5.0
|
||||
- Patch SkipLogo on Macs that natively support Monterey or newer
|
||||
- Resolves missing Apple logo on boot screen
|
||||
- Increment Binaries:
|
||||
- OpenCorePkg 0.9.9 - release
|
||||
|
||||
|
||||
@@ -265,6 +265,30 @@
|
||||
<key>Skip</key>
|
||||
<integer>0</integer>
|
||||
</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>
|
||||
<key>Quirks</key>
|
||||
<dict>
|
||||
|
||||
@@ -9,7 +9,7 @@ from pathlib import Path
|
||||
|
||||
from resources import constants, generate_smbios, device_probe
|
||||
from resources.build import support
|
||||
from data import smbios_data, cpu_data
|
||||
from data import smbios_data, cpu_data, os_data
|
||||
|
||||
|
||||
class BuildFirmware:
|
||||
@@ -38,6 +38,24 @@ class BuildFirmware:
|
||||
self._acpi_handling()
|
||||
self._firmware_driver_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) 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 not "Max OS Supported" in smbios_data.smbios_dictionary[self.model]:
|
||||
return
|
||||
|
||||
if smbios_data.smbios_dictionary[self.model]["Max OS Supported"] >= os_data.os_data.monterey and self.model != "MacPro6,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:
|
||||
|
||||
Reference in New Issue
Block a user