Jump to content

First time hacking a -(void) help


Go to solution Solved by KingRalph,

17 posts in this topic

Recommended Posts

Posted (edited)

So the void I'm trying to hack it has the class of course so %hook then the class then it has -(void) removeSubsriptionTimeObserver:(id) then it has a return value (void) then below it is Argument #1 (Id) then below the Argument is NULL how would I put this ^ in my tweak.xm

Updated by Taylor Meyer
Posted (edited)

My MS coding is pretty rusty, but I think this is how it might look:

 

-(void) removeSubsriptionTimeObserver:(id)fp8 {%orig(null);}

 

Modifying voids work, but not most of the time.

Updated by Diversityy
Posted

%hook CLPEngine

 

-(void)removeSubsriptionTimeObserver:(id)arg1

arg1 = // What you want to return

 

%end

Posted

 

%hook CLPEngine

-(void)removeSubsriptionTimeObserver:(id)arg1
arg1 = // What you want to return 

%end
which one should I use yours or diversities
Posted

There's nothing wrong on testing both.

for zimon where he put what you want to return do I leave that blank or what

There's nothing wrong on testing both.

ooooooo or do I put NULL there that's what I put in flex 2
Posted

for zimon where he put what you want to return do I leave that blank or what ooooooo or do I put NULL there that's what I put in flex 2

NULL

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