Jump to content

Returning Multiple Methods - unsigned int & int


Cyber X

4 posts in this topic

Recommended Posts

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

Link to comment
https://iosgods.com/topic/10781-returning-multiple-methods-unsigned-int-int/
Share on other sites

 

 

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

 

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” */

Archived

This topic is now archived and is closed to further replies.

×
  • 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