Skip to content

Commit

Permalink
Workaround clang not compiling function with PAC
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhduytran0 committed Mar 30, 2024
1 parent cb4f827 commit fb65ba5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions TweakSB.x
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,11 @@ static uint16_t forcePadIdiom = 0;
%end

// Unlock external display support for MDC versions
BOOL hookedExtDisplayEnabledFunc(){
return YES;
int hookedExtDisplayEnabledFunc() {
// clang forgets to PAC this function, so we need this ugly line
int hack = 0; if (hack) { abort(); }

return 1;
}

// Bypass Keyboard & Mouse requirement
Expand Down

0 comments on commit fb65ba5

Please sign in to comment.