Skip to content

Commit

Permalink
ker_start: Don’t patch CC when requested
Browse files Browse the repository at this point in the history
  • Loading branch information
khronokernel committed Dec 30, 2022
1 parent 0c2bf5b commit eee2846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FeatureUnlock/kern_start.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ static void patched_cs_validate_page(vnode_t vp, memory_object_t pager, memory_o
}
}
}
if (!has_applied_cc_app_patch && host_needs_airplay_to_mac_vmm_patch) {
if (!disable_sidecar_mac && !has_applied_cc_app_patch && host_needs_airplay_to_mac_vmm_patch) {
if (UNLIKELY(strcmp(path, controlCenterPath) == 0)) {
patch_result = searchAndPatch(data, PAGE_SIZE, path, kGenericVmmOriginal, kGenericVmmPatched, "Control Center (app)", false);
if (patch_result) {
Expand Down

0 comments on commit eee2846

Please sign in to comment.