%hook UFCIAPAccessControl
-(bool) isFightPassSubActive {
return TRUE;
}
-(bool) isPPVValid:(id)fp4 {
return TRUE;
fp4= nil;
%orig();
}
-(void) accountAddPackageWithItemId:(id)fp5 receipt:(id)fp6 autorenewable:(bool)fp7 isPPV:(bool) {
fp5= nil;
fp6= nil;
fp7= TRUE;
%orig(fp5,fp6,fp7);
}
%end
%hook UFCGeoManager
-(bool) getLocationAvailable {
return TRUE;
}
%end
When trying to create a theos tweak I am getting the following error:
Preprocessing Tweak.xm...
Compiling Tweak.xm...
Tweak.xm:31:178: error: expected class member or base class name
...self, SEL _cmd, id fp5, id fp6, bool fp7):(bool) {
^
Tweak.xm:31:178: error: expected '{' or ','
Tweak.xm:31:177: error: only constructors take base initializers
...self, SEL _cmd, id fp5, id fp6, bool fp7):(bool) {