提交 ad16b282 编写于 作者: P PMheart

OcAppleKernelLib: Fixed `ExtendBTFeatureFlags` quirk on newer macOS versions, thx @lvs1974

上级 7688cf4e
OpenCore Changelog
==================
#### v0.8.1
- Fixed `ExtendBTFeatureFlags` quirk on newer macOS versions, thx @lvs1974
#### v0.8.0
- Added support for early log preservation
- Switched to Python 3 in scripts (use `python /path/to/script` to force Python 2)
......
......@@ -1818,6 +1818,20 @@ mBTFeatureFlagsPatchV2 = {
.Skip = 0
};
STATIC
PATCHER_GENERIC_PATCH
mBTFeatureFlagsPatchV3 = {
.Comment = DEBUG_POINTER ("BTFeatureFlagsV3"),
.Base = "__ZN17IOBluetoothDevice25setDeviceSupportedFeatureEj",
.Find = NULL,
.Mask = NULL,
.Replace = mBTFeatureFlagsReplace,
.ReplaceMask = NULL,
.Size = sizeof (mBTFeatureFlagsReplace),
.Count = 1,
.Skip = 0
};
STATIC
EFI_STATUS
PatchBTFeatureFlags (
......@@ -1837,9 +1851,13 @@ PatchBTFeatureFlags (
Status = PatcherApplyGenericPatch (Patcher, &mBTFeatureFlagsPatchV1);
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_INFO, "OCAK: Failed to find BT FeatureFlags symbol v1 - %r, trying v2\n", Status));
Status = PatcherApplyGenericPatch (Patcher,&mBTFeatureFlagsPatchV2);
Status = PatcherApplyGenericPatch (Patcher, &mBTFeatureFlagsPatchV2);
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_INFO, "OCAK: Failed to find BT FeatureFlags symbol v2 - %r\n", Status));
DEBUG ((DEBUG_INFO, "OCAK: Failed to find BT FeatureFlags symbol v2 - %r, trying v3\n", Status));
Status = PatcherApplyGenericPatch (Patcher, &mBTFeatureFlagsPatchV3);
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_INFO, "OCAK: Failed to find BT FeatureFlags symbol v3 - %r\n", Status));
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册