Jump to content

how return by (void) in string


Go to solution Solved by castix,

11 posts in this topic

Recommended Posts

Posted

hi gays :p  how return by (void)

 

                  ; Quest::mpNumber::setmpNumber(void)
 __ZN5Quest8mpNumber11setmpNumberEv

 

 

 

Is this correct way

 

int (*old__ZN5Quest8mpNumber11setmpNumberEv)();

int $__ZN5Quest8mpNumber11setmpNumberEv()
{
   return 99999;
}

%ctor {

    MSHookFunction(((int*)MSFindSymbol(NULL, "__ZN5Quest8mpNumber11setmpNumberEv")),(int*)$__ZN5Quest8mpNumber11setmpNumberEv,(void**)&old__ZN5Quest8mpNumber11setmpNumberEv);
 }

Posted

This is how I would call a void argument in ms hook. Someone with more experience can correct me if I'm wrong

 

int $__ZN5Quest8mpNumber11setmpNumberEv()
{
   %orig(99999);
}

 

Always remember that void functions don't "return" anything. You have to call the original argument with %orig

Posted (edited)

No just treat the void as what it would be if it was not a void. That symbol would be an int, so just put
 

int $__ZN5Quest8mpNumber11setmpNumberEv{
return 9999;
}

Actually you are correct, I didn't read your first post fully :p yeah you're good to go :thumbsup:

Updated by Guest
Posted
  On 2/17/2015 at 2:55 AM, shmoo said:

No just treat the void as what it would be if it was not a void. That symbol would be an int, so just put

 

int $__ZN5Quest8mpNumber11setmpNumberEv{
return 9999;
}

Actually you are correct, I didn't read your first post fully :p yeah you're good to go :thumbsup:

int (*old__ZN5Quest8mpNumber11setmpNumberEv)();

 

int $__ZN5Quest8mpNumber11setmpNumberEv   /-------- if not use "()" stile ger errors

 

{

   return 99999;

}

 

%ctor {

 

    MSHookFunction(((int*)MSFindSymbol(NULL, "__ZN5Quest8mpNumber11setmpNumberEv")),(int*)$__ZN5Quest8mpNumber11setmpNumberEv,(void**)&old__ZN5Quest8mpNumber11setmpNumberEv);

 }

 

get errors

Posted (edited)

try this

 

int (*old__ZN5Quest8mpNumber11setmpNumberEv)();

int $__ZN5Quest8mpNumber11setmpNumberEv()
{   
return 99999;
}

%ctor{    
MSHookFunction(((int*)MSFindSymbol(NULL, "__ZN5Quest8mpNumber11setmpNumberEv")),(int*)$__ZN5Quest8mpNumber11setmpNumberEv,(int**)&old__ZN5Quest8mpNumber11setmpNumberEv); 
}
copy and paste it Updated by Guest
  • Solution
Posted

Actually what he supposed to have correct in the first post was indeed. There is no reason to edit it

Posted (edited)
  On 2/17/2015 at 9:50 PM, castix said:

@@shmoo the third is always (void**) ;)

Oh when I did that method a couple times I would always change the third method to whatever the first and second methods were and it would work... O.o

Updated by Guest

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
  • Our picks

    • Skullgirls Fighting RPG V7.2.2 [ +6 Jailed ] Auto Win
      Modded/Hacked App: Skullgirls: Fighting RPG By Autumn Games, LLC
      Bundle ID: com.autumn.skullgirls
      iTunes Store Link: https://apps.apple.com/us/app/skullgirls-fighting-rpg/id1280762571?uo=4


      Hack Features:

      - Auto win

      - Damage [ One HiT WiN ]

      - Energy Max

      - Skill

      - Enemy Disable

      - Goals Claimed [ Free Pass Only ]
        • Informative
        • Thanks
        • Winner
        • Like
      • 24 replies
    • Skullgirls Fighting RPG V7.2.2 [ +6 Cheats ] Auto Win
      Modded/Hacked App: Skullgirls: Fighting RPG By Autumn Games, LLC
      Bundle ID: com.autumn.skullgirls
      iTunes Store Link: https://apps.apple.com/us/app/skullgirls-fighting-rpg/id1280762571?uo=4


      Hack Features:
      - Auto win

      - Damage [ One HiT WiN ]

      - Energy Max

      - Skill

      - Enemy Disable

      - Goals Claimed [ Free Pass Only ]
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 116 replies
    • Merge & Blast: Dream Island v2.19.0 [ +2 Cheats ] Auto Win
      Modded/Hacked App: Merge & Blast: Dream Island By Dreamo, Inc.
      Bundle ID: com.dreamo.woodyblast
      iTunes Store Link: https://apps.apple.com/us/app/merge-blast-dream-island/id1668748189?uo=4


      🤩 Hack Features

      - Auto Win
      - Coin + Moves [ Disable After Get ]




      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Like
      • 8 replies
    • Merge & Blast: Dream Island v2.19.0 [ +2 Jailed ] Auto Win
      Modded/Hacked App: Merge & Blast: Dream Island By Dreamo, Inc.
      Bundle ID: com.dreamo.woodyblast
      iTunes Store Link: https://apps.apple.com/us/app/merge-blast-dream-island/id1668748189?uo=4

       

      🤩 Hack Features

      - Auto Win
      - Coin + Moves [ Disable After Get ]




      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 12 replies
    • Match Villains v1.27.1 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Match Villains By Good Job Games Bilisim Yazilim ve Pazarlama AS
      Bundle ID: com.goodjobgames.matchvillains
      iTunes Store Link: https://apps.apple.com/us/app/match-villains/id6479752688?uo=4
       

      🚀 Hack Features

      - Coins
      - Lives
      - Moves Freeze
      - Booster


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Informative
        • Like
      • 12 replies
    • Match Villains v1.27.1 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Match Villains By Good Job Games Bilisim Yazilim ve Pazarlama AS
      Bundle ID: com.goodjobgames.matchvillains
      iTunes Store Link: https://apps.apple.com/us/app/match-villains/id6479752688?uo=4
       

      🚀 Hack Features

      - Coins
      - Lives
      - Moves Freeze
      - Booster


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
        • Like
      • 15 replies
    • Castle Crush-Match 3 v2.8.0 [ +6 Jailed ] Auto Win
      Modded/Hacked App: Castle Crush-Match 3 By KIWI MIBO NETWORK TECHNOLOGY CO.,LIMITED
      Bundle ID: com.mibo.castlecrush.apple
      iTunes Store Link: https://apps.apple.com/us/app/castle-crush-match-3/id1663431964?uo=4


      Hack Features

      - Coins

      - Lives

      - Stars

      - Moves Freeze

      - Booster

      - Auto Win [ Just Hit Target ]


      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Like
      • 11 replies
    • Castle Crush-Match 3 v2.8.0 [ +6 Cheats ] Auto Win
      Modded/Hacked App: Castle Crush-Match 3 By KIWI MIBO NETWORK TECHNOLOGY CO.,LIMITED
      Bundle ID: com.mibo.castlecrush.apple
      iTunes Store Link: https://apps.apple.com/us/app/castle-crush-match-3/id1663431964?uo=4


      Hack Features

      - Coins

      - Lives

      - Stars

      - Moves Freeze

      - Booster

      - Auto Win [ Just Hit Target ]


      For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
        • Like
      • 14 replies
    • Survivor Kingdoms V3.12 [ +11 Jailed ] Easy Win
      Modded/Hacked App: Survivor Kingdoms By Gamee Joint Stock Company
      Bundle ID: com.gamee.kingdoms.survivor.io
      iTunes Store Link: https://apps.apple.com/us/app/survivor-kingdoms/id6444824577?uo=4

       

      🚀 Hack Features

      - IAP Free [ Buy Anything ]

      - Health

      - Damage

      - Skill CD Slow

      - Skill CD Fast [ Maybe Game Slow ]

      - Skill Size Big

      - Shooting Speed Fast

      - Movement Speed

      - Auto Revive Unlimited [ Never Die ]

      - Ultimate Power CD

      - Avatar & Frame 


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Informative
        • Agree
        • Winner
        • Like
      • 15 replies
    • Survivor Kingdoms V3.12 [ +11 Cheats ] Easy Win
      Modded/Hacked App: Survivor Kingdoms By Gamee Joint Stock Company
      Bundle ID: com.gamee.kingdoms.survivor.io
      iTunes Store Link: https://apps.apple.com/us/app/survivor-kingdoms/id6444824577?uo=4


      Hack Features:
      - IAP Free [ Buy Anything ]

      - Health

      - Damage

      - Skill CD Slow

      - Skill CD Fast [ Maybe Game Slow ]

      - Skill Size Big

      - Shooting Speed Fast

      - Movement Speed

      - Auto Revive Unlimited [ Never Die ]

      - Ultimate Power CD

      - Avatar & Frame 


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 32 replies
    • Merge Cruise: Mystery Puzzle v0.36.210 [ +2 Cheats ] Currency Max
      Modded/Hacked App: Merge Cruise: Mystery Puzzle By STUDIO PEERPLAY GAMES LTD
      Bundle ID: com.peerplay.megamerge
      iTunes Store Link: https://apps.apple.com/us/app/merge-cruise-mystery-puzzle/id6459056553?uo=4
       

      🤩 Hack Features

      - Cash
      - Energy

        • Like
      • 5 replies
    • Merge Cruise: Mystery Puzzle v0.36.210 [ +2 Jailed ] Currency Max
      Modded/Hacked App: Merge Cruise: Mystery Puzzle By STUDIO PEERPLAY GAMES LTD
      Bundle ID: com.peerplay.megamerge
      iTunes Store Link: https://apps.apple.com/us/app/merge-cruise-mystery-puzzle/id6459056553?uo=4
       

      🤩 Hack Features

      - Cash
      - Energy

        • Winner
        • Like
      • 10 replies
×
  • 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