Jump to content

pls help make a tweak.xm


Go to solution Solved by AnotherLurker,

3 posts in this topic

Recommended Posts

Posted (edited)

 

how to make

 

-(BOOL)affordproduct:(id)withcurrency:(int)

 

return value (BOOL)

TRUE

argument#1(id)

pass-through

argument#2(int)

99999

Updated by DiDA
Posted

%hook ClassName

- (BOOL)affordProduct:(id)fp8 withCurrency:(int)fp12 {

         return true(fp8, 9999);

}

%end

  • Solution
Posted

@@castix
 
u can't return a value unless the value is a function with parameters :facepalm:
 

%hook ClassName
- (BOOL)affordProduct:(id)fp8 withCurrency:(int)fp12 
{
    return true;
}
%end

you don't need to modify the currency, u can just return true to always afford a product no matter what :)

 

@@tigger

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines