Jump to content

How can I return (void)xxx:(bool)


Go to solution Solved by Rook,

7 posts in this topic

Recommended Posts

Posted (edited)

hi how do i

hook a function like :

-(void)xxxxx:(bool)

? do i use orig??it should be true to answer the boolean.. thank you

Updated by mehdiphone
  • Solution
Posted

 

- (void)setActive:(bool)arg {
arg = TRUE;
%orig(arg);
}
%end
Posted

ah okay i see the link now thank you ! :" dida

as i understand TRUE takes the value of arg ?

arg is simply to ID the method. arg can be anything else :3

- (void)setActive:(bool)yolo {
yolo = TRUE;
%orig(yolo);
}
%end

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