Jump to content

4 posts in this topic

Recommended Posts

Posted
ok so this code here does not work,
 
-(void) set_gems:(int) {
     if(GetPrefBool(@"xIg")) {
         return 999999;
     }
         return %orig;
}
 
how do i pick out the (int) and edit it?
 
something like this?
 
-(void) set_gems:(int)var1 {
      if(GetPrefBool(@"xIg")) {
             var1 = 999999;
       }
             var1 = %orig;
}

 

Posted

Ok that worked for the ones where i am changing the (int)

 

but what if it were in this situation:

 

-(bool) in_range:(CGPoint){


}

How would i edit the (bool), i tried 

-(bool)inRange in_range:(CGPoint){


}

but it was assuming that inRange was part of the method, how would i change the (bool) in this @?

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