未验证 提交 2e351091 编写于 作者: P PMheart 提交者: GitHub

OcAppleKernelLib: Fix `ExternalDiskIcons` quirk on macOS 13.3+, thanks fusion71au (#452)

上级 3c037b2f
......@@ -8,6 +8,7 @@ OpenCore Changelog
- Fixed possible hang with `GopBurstMode` enabled on DEBUG builds
- Enabled `GopBurstMode` even with natively supported cards, in EnableGop firmware driver
- Fixed inability to patch force-injected kexts
- Fixed `ExternalDiskIcons` quirk on macOS 13.3+, thx @fusion71au
#### v0.9.1
- Fixed long comment printing for ACPI patches, thx @corpnewt
......
......@@ -1007,7 +1007,7 @@ PATCHER_GENERIC_PATCH
.Replace = mIOAHCIPortPatchReplace,
.ReplaceMask = NULL,
.Size = sizeof (mIOAHCIPortPatchFind),
.Count = 1,
.Count = 1, ///< 2 for macOS 13.3+
.Skip = 0
};
......@@ -1025,6 +1025,15 @@ PatchForceInternalDiskIcons (
return EFI_NOT_FOUND;
}
//
// Override patch count to 2 on macOS 13.3+ (Darwin 22.4.0).
//
if (OcMatchDarwinVersion (KernelVersion, KERNEL_VERSION (KERNEL_VERSION_VENTURA, 4, 0), 0)) {
mIOAHCIPortPatch.Count = 2;
} else {
mIOAHCIPortPatch.Count = 1;
}
Status = PatcherApplyGenericPatch (Patcher, &mIOAHCIPortPatch);
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_INFO, "OCAK: [FAIL] Failed to apply patch com.apple.driver.AppleAHCIPort - %r\n", Status));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册