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

    • Bridge Constructor Studio v1.0.65 +3 Jailed Cheats [ Unlocked ]
      Modded/Hacked App: Bridge Constructor Studio By Headup GmbH
      Bundle ID: com.headupgames.bridgeconstructorstudio
      App Store Link: https://apps.apple.com/us/app/bridge-constructor-studio/id6745402280?uo=4

       
       

      🤩 Hack Features

      - Freeze Bridge
      - No Build Costs
      -- Full Game Unlocked (will show as locked)
      • 0 replies
    • Bridge Constructor Studio v1.0.65 +3 Cheats [ Unlocked ]
      Modded/Hacked App: Bridge Constructor Studio By Headup GmbH
      Bundle ID: com.headupgames.bridgeconstructorstudio
      App Store Link: https://apps.apple.com/us/app/bridge-constructor-studio/id6745402280?uo=4

       
       

      🤩 Hack Features

      - Freeze Bridge
      - No Build Costs
      -- Full Game Unlocked (will show as locked)
      • 0 replies
    • SWAT: Squad Tactics v0.8.6 [+3 Cheats]
      Modded/Hacked App: SWAT: Squad Tactics By MAD PIXEL GAMES LTD
      Bundle ID: hero.shooter.alpha.game
      iTunes Store Link: https://apps.apple.com/us/app/swat-squad-tactics/id6670252311?uo=4


      🤩 Hack Features

      - Unlimited Skipits Ticket
      - Unlimited Currency (Enable before stage and finish stage)
      - Unlimited Blueprints (Enable before stage and finish stage)
      • 5 replies
    • SWAT: Squad Tactics v0.8.6 [+3 Jailed Cheats]
      Modded/Hacked App: SWAT: Squad Tactics By MAD PIXEL GAMES LTD
      Bundle ID: hero.shooter.alpha.game
      iTunes Store Link: https://apps.apple.com/us/app/swat-squad-tactics/id6670252311?uo=4



      🤩 Hack Features

      - Unlimited Skipits Ticket
      - Unlimited Currency (Enable before stage and finish stage)
      - Unlimited Blueprints (Enable before stage and finish stage)
      • 4 replies
    • Pal Go: Tower Defense TD v0.3.91 [+7 Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      🚀 Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       


      🍏 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/
      • 57 replies
    • Pal Go: Tower Defense TD v0.3.91 [+7 Jailed Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       

      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 82 replies
    • Stand & Fight: Backpack Battle v0.9.5 Debug Menu [+10 Jailed Cheats]
      Modded/Hacked App: Stand & Fight: Backpack Battle By VERARIUM COM SERVICOS LDA ZFM
      Bundle ID: com.V.StandAndFight
      App Store Link: https://apps.apple.com/us/app/stand-fight-backpack-battle/id6740915182?uo=4



      🤩 Hack Features

      - Debug Menu

       
      • 12 replies
    • Stand & Fight: Backpack Battle v0.9.5 Debug Menu [+10 Cheats]
      Modded/Hacked App: Stand & Fight: Backpack Battle By VERARIUM COM SERVICOS LDA ZFM
      Bundle ID: com.V.StandAndFight
      App Store Link: https://apps.apple.com/us/app/stand-fight-backpack-battle/id6740915182?uo=4



      🤩 Hack Features

      - Debug Menu
      • 11 replies
    • Rupture: Immortal Slasher v0.15.6 [+3 Cheats]
      Modded/Hacked App: Rupture: Immortal Slasher By ALEKSEI KLIMOV
      Bundle ID: com.GOLEM.Immortal
      iTunes Store Link: https://apps.apple.com/us/app/rupture-immortal-slasher/id6738378630?uo=4

       

      🤩 Hack Features

      - God Mode/Never Die
      - Unlimited Currency (Add 50k every time you spend)
      - Always Can Upgrade Equipments

       
      • 12 replies
    • Rupture: Immortal Slasher v0.15.6 [+3 Jailed Cheats]
      Modded/Hacked App: Rupture: Immortal Slasher By ALEKSEI KLIMOV
      Bundle ID: com.GOLEM.Immortal
      iTunes Store Link: https://apps.apple.com/us/app/rupture-immortal-slasher/id6738378630?uo=4

       

      🚀 Hack Features

      - God Mode/Never Die
      - Unlimited Currency (Add 50k every time you spend)
      - Always Can Upgrade Equipments


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 25 replies
    • Night Valley - Tower Defense v1.0.15 [+2 Jailed Cheats]
      Modded/Hacked App: Night Valley - Tower Defense By Pitaya Group, Inc, The
      Bundle ID: com.pitaya.natv
      App Store Link: https://apps.apple.com/us/app/night-valley-tower-defense/id6467846624?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency
      • 7 replies
    • Night Valley - Tower Defense v1.0.15 [+2 Cheats]
      Modded/Hacked App: Night Valley - Tower Defense By Pitaya Group, Inc, The
      Bundle ID: com.pitaya.natv
      App Store Link: https://apps.apple.com/us/app/night-valley-tower-defense/id6467846624?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency
       
      • 5 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