forked from Mojave/Tick11
1.1
This commit is contained in:
@ -39,6 +39,36 @@ void playSound() {
|
||||
|
||||
%end
|
||||
|
||||
%hook SBIconController
|
||||
|
||||
-(void)_forceTouchControllerWillPresent:(id)arg1 {
|
||||
|
||||
%orig;
|
||||
|
||||
if (enabled) {
|
||||
playSound();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
%end
|
||||
|
||||
%hook SBIconController
|
||||
|
||||
-(void)_iconForceTouchControllerWillPresent:(id)arg1 {
|
||||
|
||||
%orig;
|
||||
|
||||
if (enabled) {
|
||||
playSound();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
%end
|
||||
|
||||
%end
|
||||
|
||||
%ctor {
|
||||
|
Reference in New Issue
Block a user