Jump to content

Please Help !! (MS HACKING)


Go to solution Solved by DeadGood,

8 posts in this topic

Recommended Posts

Posted

So i was trying to figure out how can i return a bool value attached to id and voids.

 

Can you please tell me if my method is right?

 

so this is the code->

 

 

 

- (void)setIsTyping:(BOOL)fp8

 

 

i Want to return it's bool value,

so are these ways correct . They are mentioned below: ->

 

 

 

1.

- (void)setIsTyping:(BOOL)fp8

{

%orig(false);

}

or

2.

- (void)setIsTyping:(BOOL)fp8

{

%orig(fp8);

fp8=false;

}

 

or

3.

- (void)setIsTyping:(BOOL)fp8

{

 

fp8=false

%orig(fp8);

}

 

that's it...

and one more question

 

- (id)initWithUser:(id)fp8 isTypingValue:(BOOL)fp12 ?

I only want to return the BOOL value. Can you please tell me how?

 

 

 

 

 

 

 

 

 

Posted

you can add to your previous topic because it is same thing

Posted
%hook something
- (id)initWithUser:(id)fp8 isTypingValue:(BOOL)fp12
{
fp12 = TRUE;
//or
fp12 = FALSE;
}
%end

hmm doesn't work.

%hook xyz
 
 
- (id)initWithUser:(id)fp8 isTypingValue:(BOOL)fp12
 {
fp12=false;
}
%end

 

 

shows me this error->

 

 
Making all for tweak xzyxc...
 Preprocessing Tweak.xm...
 Compiling Tweak.xm...
Tweak.xm:7:1: error: control reaches end of non-void function
      [-Werror,-Wreturn-type]
}
^
  • Solution
Posted

 

hmm doesn't work.

%hook xyz
 
 
- (id)initWithUser:(id)fp8 isTypingValue:(BOOL)fp12
 {
fp12=false;
}
%end

 

 

shows me this error->

 

 
Making all for tweak xzyxc...
 Preprocessing Tweak.xm...
 Compiling Tweak.xm...
Tweak.xm:7:1: error: control reaches end of non-void function
      [-Werror,-Wreturn-type]
}
^

 

this never happen to me so im not sure. can you try this?

 

 

%hook xyz


- (id)initWithUser:(id)fp8 isTypingValue:(BOOL)fp12
 {
fp12=false;
return %orig;
}

%end

Posted

 

this never happen to me so im not sure. can you try this?

 

 

%hook xyz


- (id)initWithUser:(id)fp8 isTypingValue:(BOOL)fp12
 {
fp12=false;
return %orig;
}

%end

This one worked! :D haha! Thanks man! thank you for sparing some of your time in solving my querry! It means a lot to me! thanks again! 

 

what i was doing-->

 - (id)initWithUser:(id)fp8 isTypingValue:(BOOL)fp12

{

fp12=false;

%orig(fp12);

}

 

%end

 

 

but it didn't work. No wonder why. Anyway it works now ! Thanks :)

 

 

Posted (edited)

1.)

- (void)setIsTyping:(bool)argument {

argument = FALSE;

}

%end

 

 

2.)

- (id)initWithUser:(id)fp8 isTypingValue:(bool)fp12 {

fp12 = FALSE;

fp8 = %orig;

return %orig;

}

%end

Updated by C3FFF0E

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