So, I'm new to tweak development and obj c and I'm trying to change the style of dock with this code
%hook SBWallpaperEffect
-(void)setStyle: (NSInteger)arg1{
arg1 = 5;
}
%end
But it doesn't work. What am I doing wrong?
Ok so i figured out that im using NSInteger instead of long long. Like this:
- (void)setStyle:(long long)arg1;
Also, i was using
SBWallpaperEffect
Instead of
SBWallpaperEffectView
And i should've set the value inside %orig
So, this is the right way to write it:
%hook SBWallpaperEffectView
- (void)setStyle:(long long)arg1{
arg1 = 5;
%orig(arg1);
return;
}
%end