Skip to content
Guest Big Announcement

Please Help !! (MS HACKING)

Featured Replies

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?

 

 

 

 

 

 

 

 

 

Solved by DeadGood

  • Author

Well i wanted quick response from people because i won't be here for long.  :sad:

  • Author
%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

 

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

  • Author

 

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 :)

 

 

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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.