Jump to content

18 posts in this topic

Recommended Posts

Posted

 

can i do this way? to make it work?

 

- (void)setIsTyping:(BOOL)fp8

{

%orig(false);

}

 

or

 

 

- (void)setIsTyping:(BOOL)fp8

{

%orig(fp8);

fp8=false;

}

 

 

or

 

 

 

- (void)setIsTyping:(BOOL)fp8

{

 

fp8=false

%orig(fp8);

}

 

 

ARE ALL THESE WAYS CORRECT?

 

OR the one you told me now?

 

 

1 and 3 are correct

Simple.

 

Try this:

 

%hook XYZ

 

- (void)setIsTyping:(bool)argument {

argument = FALSE;

}

%end

 

Remember: always do lowercase the (BOOL) > (bool). Ok? Rather than making it an "fp8", just use "argument". You can only use "fp8", "fp12", and so on when when it comes in multiple targets. Like -(void)xxx(id)fp8 xxx(id)fp12.

That's so wrong :/

Posted

Oh. :D

 

I'll remove it :3

wth (._.) now i am having problem in making preference bundle... plus there are so many targets of a single class, do i need to add

 if(GetPrefBool(@"kCoin"))  in every single target of the same class? I have went through the tutorial of preference bundle, but i was hoping someone may make  a little complex tutorial so that everyone can get an idea of what they need to do when they encounter some mixed targets

Posted

wth (._.) now i am having problem in making preference bundle... plus there are so many targets of a single class, do i need to add

 if(GetPrefBool(@"kCoin"))  in every single target of the same class? I have went through the tutorial of preference bundle, but i was hoping someone may make  a little complex tutorial so that everyone can get an idea of what they need to do when they encounter some mixed targets

Oh yes. Wait, are you making a patcher? What code that I give is for Tweak only.

 

Just add:

if(GetPrefBool(@"kCoin"))

 

After the Target-Method.

 

For Example:

 

%hook ABCDE

 

-(void)XYZ(bool)argument {

if(GetPrefBool(@"kCoin")) {

argument = TRUE;

}

return %orig;

}

 

%end

Posted

Oh yes. Wait, are you making a patcher? What code that I give is for Tweak only.

 

Just add:

if(GetPrefBool(@"kCoin"))

 

After the Target-Method.

 

For Example:

 

%hook ABCDE

 

-(void)XYZ(bool)argument {

if(GetPrefBool(@"kCoin")) {

argument = TRUE;

}

return %orig;

}

 

%end

hmm for example,

i have one class and under it are 8 targets.

class is about jailbreak something bla bla

and those 8 targets do the work of changing the jailbreak state.

what i am trying to say is , do i need to keep putting if(GetPrefBool(@"kCoin")) in every single target? Because it's going to be a single switch for it not multiple switches

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