Skip to content

Commit

Permalink
Fix sound problem with Eneko
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoangdus committed Mar 14, 2022
1 parent 772e1f4 commit 8d5a687
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions BoopBoopBoop/BoopBoopBoop.x
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ void preferencesthings(){ //pref (looks THICC)
ClackingHardness = (prefs && [prefs objectForKey:@"Clackhardness"] ? [[prefs valueForKey:@"Clackhardness"] integerValue] : 0 );
}

//checking for eneko
NSString *Eneko = @"/usr/lib/Tweakinject/Eneko.dylib";

static void hapticpasscode() { //clacking button

if (Clackingbuttons){
Expand All @@ -51,11 +54,15 @@ static void hapticpasscode() { //clacking button
%hook SBUIPasscodeLockViewBase //remove default keypad sound

-(void)setPlaysKeypadSounds:(BOOL)arg1{
if (isPCEnable){

}else{
if ([[NSFileManager defaultManager]fileExistsAtPath:Eneko]){
%orig;
}
}else{
if (isPCEnable){

}else{
%orig;
}
}
}

-(void)_sendDelegateKeypadKeyDown { //BOOP
Expand Down

0 comments on commit 8d5a687

Please sign in to comment.