Jump to content

Returning Multiple Methods - unsigned int & int


Go to solution Solved by Rook,

4 posts in this topic

Recommended Posts

Posted (edited)

how would i wright this out in MS ?

 

Target Class
FABPremiumProduct

 

Target Method

-(void) updateGoldValue:(unsigned int)cashValue:(unsigned int)sortindex:(int)

 

Return Value (void)

pass-through

 

Argument #1(unsigned int)

9999999

 

Argument #2(unsigned int)

9999999

 

Argument #3(int)

9999999

Updated by L33TPr0xY
Posted

 

so i would have to wright it like this

 

%hook FABPremiumProduct
 
-(void) updateGoldValue:(unsigned int) {
return 9999999;
}
-(void) cashValue:(unsigned int) {
return 9999999;
}
-(void) sortindex:(int){
return 9999999;
}
%end

 

 

No, read it properly:

void with argument
-(void)setCoins:(int)argument {
argument = 999999;
}
-(void)setHasCoins:(bool)argument {
argument = TRUE;
}
-(void)setCoins:(id)argument {
argument = [NSNumber numberWithInteger:999999];
}
/* “argument” can be named anything. This is similar to returning non-void counterparts,
except you name the argument and remove “return” */

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