Jump to content

MobileSubstrate - Return with ID and VOID method


Go to solution Solved by Ianouar3G,

8 posts in this topic

Recommended Posts

Posted

Hello

 

I need a help with returning those methods in MobileSubstrate tweak.

 

For example:

- (void) setFrame: (CGRect)

Void: Return to pass-through

CGRect: Return to pass-through

- (void) playAdFromLink:(id)

Void: Return to pass-through

ID: Return to NULL

- (id)baseUI

ID: return to NULL

- (void) adsViewModel:(id) shouldPlayAds:(BOOL)

Void: Return to pass-through

ID: Return to NULL

BOOL: Return to FALSE

  • Solution
Posted (edited)

%hook !!!!!!!!!!!

- (void) setFrame: (CGRect)fp8

%orig;  or return ;     ================= ============<  Void: Return to pass-through
}

%end

 

 

%hook !!!!!!!!!!!

- (void) playAdFromLink: (id)fp8 {         you need  =========< : (id) fp8

fp8 = NULL;

%orig(fp8);
}

%end


 

Updated by Ianouar3G
Posted (edited)
 

Oh ok thanks but how about

- (id)baseUI

or

- (id) disallowSkipping

and

- (void) adsViewModel:(id) shouldPlayAds:(BOOL)

?

 
 
%hook SomeClass
 
- (id)baseUI
{
    return;
 
- (id) disallowSkipping
{
   return;
}
 
- (void) adsViewModel :(id)arg1 shouldPlayAds :(BOOL)arg2
{
   //Nothing will make nothing happen 
}
   
 
%end
 

you need  =========< : (id) fp8

 

 

First of all it doesn't need to be 'fp8' per-say. You can use any name, it just names the argument.

 

Also for voids if you want to call the originial  thing then you use 

 

%orig;

 

If you want nothing to happen (BXLR/NOP) then just close the code block with nothing in it.

 

-(void)someMethod{}
Updated by Gh0stByte
Posted

Hello

 

I need a help with returning those methods in MobileSubstrate tweak.

 

For example:

- (void) setFrame: (CGRect)

Void: Return to pass-through

CGRect: Return to pass-through

- (void) playAdFromLink:(id)

Void: Return to pass-through

ID: Return to NULL

- (id)baseUI

ID: return to NULL

- (void) adsViewModel:(id) shouldPlayAds:(BOOL)

Void: Return to pass-through

ID: Return to NULL

BOOL: Return to FALSE

 

You seem to have a couple things messed up :p 

 

You don't "return" a void. Voids don't "return" anything. Voids execute code. 

 

If you had a method

 

-(void)die;

 

It won't output anything, it will simply kill the player. But if you have a method like 

 

-(id)getPlayerName;

 

It will "return" the players name.

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

    • Bounty Go! +7 Jailed Cheats [ Auto Win + More ]
      Modded/Hacked App: Bounty Go! By Onetap Global Limited
      Bundle ID: onetap.game.monopoly
      App Store Link: https://apps.apple.com/us/app/bounty-go/id6749407960?uo=4

       


      🤩 Hack Features

      - God Mode 
      - One-Hit Kill
      - Token Multiplier
      - XP Multiplier
      - All Avatars Unlocked
      - All Avatar Frames Unlocked
      - Auto Win -> Press on Settings, toggle any switch like Music, then Give Up & quit.
        • Like
      • 0 replies
    • Super Heavy Iron Tank v1.0.10 [ +7 Jailed ] Auto Win
      Modded/Hacked App: Super Heavy Iron Tank By Game Duo Co.,Ltd.
      Bundle ID: net.gameduo.vg
      App Store Link: https://apps.apple.com/ph/app/super-heavy-iron-tank/id6757405833?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - DMG
      - ATK Speed
      ::::: ViP :::::
      - Auto Win
      - Energy Unlimited
      - Auto Skip Wave
      - Quick Supply
        • Thanks
        • Winner
        • Like
      • 5 replies
    • Super Heavy Iron Tank v1.0.10 [ +7 Cheats ] Auto Win
      Modded/Hacked App: Super Heavy Iron Tank By Game Duo Co.,Ltd.
      Bundle ID: net.gameduo.vg
      App Store Link: https://apps.apple.com/ph/app/super-heavy-iron-tank/id6757405833?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - DMG
      - ATK Speed
      ::::: ViP :::::
      - Energy Unlimited
      - Auto Skip Wave
      - Auto Win
      - Quick Supply
        • Winner
        • Like
      • 4 replies
    • Super Heavy Iron Tank +3 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: Super Heavy Iron Tank By Game Duo Co.,Ltd.
      Bundle ID: net.gameduo.vg
      App Store Link: https://apps.apple.com/ph/app/super-heavy-iron-tank/id6757405833?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - God Mode -> You will take damage but you won't die.
      - XP Multiplier
      • 0 replies
    • Match Squad v1.91 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Match Squad By CYPHER GAMES YAZILIM PAZARLAMA ANONIM SIRKETI
      Bundle ID: com.cyphergames.cityclash
      App Store Link: https://apps.apple.com/us/app/match-squad/id6473704944?uo=4

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Dice
      - Unlimited Cash
      • 1 reply
    • Match Squad v1.91 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Match Squad By CYPHER GAMES YAZILIM PAZARLAMA ANONIM SIRKETI
      Bundle ID: com.cyphergames.cityclash
      App Store Link: https://apps.apple.com/us/app/match-squad/id6473704944?uo=4

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Dice
      - Unlimited Cash
      • 0 replies
    • Dungeons and Bags v1.1.0 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Dungeons and Bags By Roshka S.A.
      Bundle ID: play.roshka.minibackpack
      App Store Link: https://apps.apple.com/us/app/dungeons-and-bags/id6752716609?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Battle Stars
      - HP MAX
      - ATK MAX
      • 1 reply
    • Dungeons and Bags v1.1.0 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Dungeons and Bags By Roshka S.A.
      Bundle ID: play.roshka.minibackpack
      App Store Link: https://apps.apple.com/us/app/dungeons-and-bags/id6752716609?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Battle Stars
      - HP MAX
      - ATK MAX
      • 0 replies
    • Domino Stories v1.0.04 [ +8 APK MOD ] Currency Max
      Mod APK Game Name: Domino Stories
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.domino.stories.casual.game&hl=en

       

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Stars
      - Unlimited Ticket
      - Unlimited Undo
      - Unlimited Gold Bar
      - Unlimited Free Tiles
      - Unlimited Event Currency
      - Unlimited Tokens / Event & Quest

      ⬇️ Android Mod APK Download Link


      Hidden Content

      iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
      • 0 replies
    • Dead Watcher +3 Mods [ Damage & Defence ]
      Mod APK Game Name: Dead Watcher By Entiz Game Studio
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.entizgames.deadwatch

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
        • Winner
      • 1 reply
    • Domino Stories v1.0.04 [ +8 Jailed ] Currency Max
      Modded/Hacked App: Domino Stories By PERLTEC LTD
      Bundle ID: com.domino.stories.casual.game
      App Store Link: https://apps.apple.com/ph/app/domino-stories/id6754849199?uo=4

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Stars
      - Unlimited Ticket
      - Unlimited Undo
      - Unlimited Gold Bar
      - Unlimited Free Tiles
      - Unlimited Event Currency
      - Unlimited Tokens / Event & Quest
      • 0 replies
    • Domino Stories v1.0.04 [ +8 Cheats ] Currency Max
      Modded/Hacked App: Domino Stories By PERLTEC LTD
      Bundle ID: com.domino.stories.casual.game
      App Store Link: https://apps.apple.com/ph/app/domino-stories/id6754849199?uo=4

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Stars
      - Unlimited Ticket
      - Unlimited Undo
      - Unlimited Gold Bar
      - Unlimited Free Tiles
      - Unlimited Event Currency
      - Unlimited Tokens / Event & Quest
      • 1 reply
×
  • 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