Jump to content

8 posts in this topic

Recommended Posts

Posted (edited)
%hook SessionAppEventsState
-(void) addEvent:(int) isImplicit:(bool) {
return 1234;
return False;
}
%end

Is the code above valid?

 

Or must it be:

%hook SessionAppEventsState
-(void) addEvent:(int)arg1 isImplicit:(bool)arg2 {
arg1 = 1234;
arg2 = False;
}
%end

 

Is there a way to do it without the adding the arg's?

 

Making a flex converter/tweakxm generator... but not sure on how to add arg's after each... arg

%hook ASUpdateTableViewCell
-(void) configureForItem:(id) rowIndex:(long long) textLayout:(id) numberOfLines:(long long) isPad:(bool) {
return (FLNULL);
return 1;
return (FLNULL);
return 123456789;
}
%end

----------

Didn't want to do this, but I'll go with another method I guess, which works with arg's...

P26DJa0.png

Updated by Guest
Posted
6 minutes ago, ggAyMe said:

I'm sure the second is valid. The first one seems not working

Yeah, I need a different method than the second one LUL

Posted (edited)
%hook SessionAppEventsState

-(void) addEvent:(int)arg1 isImplicit:(bool)arg2 {
return %orig(arg1, TRUE);
}
%end


//arg1 = the integer
//arg2 = the boolean

 

That should work ^

 

See this comment by @castix: https://iosgods.com/topic/5978-need-help-with-these-arguments/?do=findComment&comment=147337

 

Updated by Ted2
Posted

Your second try works because you can't use return in a void method and you correctly assigned a value to each argument

Posted
3 hours ago, Ted2 said:

%hook SessionAppEventsState

-(void) addEvent:(int)arg1 isImplicit:(bool)arg2 {
return %orig(arg1, TRUE);
}
%end


//arg1 = the integer
//arg2 = the boolean

 

That should work ^

 

See this comment by @castix: https://iosgods.com/topic/5978-need-help-with-these-arguments/?do=findComment&comment=147337

 

 

1 hour ago, castix said:

Your second try works because you can't use return in a void method and you correctly assigned a value to each argument

Alright, wanted to know different ways to go about for the generator. I was really close to being able to do the right method but gave up >_< 

 

jnaJDZ9.gif

Posted
5 minutes ago, Zimon said:

 

Alright, wanted to know different ways to go about for the generator. I was really close to being able to do the right method but gave up >_< 

 

Hm yeah that generator doesn't seem to work with arguments

Posted
3 minutes ago, castix said:

Hm yeah that generator doesn't seem to work with arguments

I just realised something thanks to the reply you posted (Ted2 linked to)! I can use any argument name....Dammit! I had it before... I'll need to remake that.

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