Jump to content

MobileSubstrate - Return with ID and VOID method


ThePianoGuy

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

Posted

%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


 

Posted
 

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{}
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.

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Trash Tycoon Idle Empire v3.4.0 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Trash Tycoon Idle Empire By SUPERSONIC STUDIOS LTD
      Bundle ID: com.funcell.trashinc
      iTunes Store Link: https://apps.apple.com/us/app/trash-tycoon-idle-empire/id1595274680?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Jailbreak required hack(s): [Mod Menu Hack] Trash Tycoon Idle Empire v2.6.2 +1++ Cheat [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      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
      • 61 replies
    • Trash Tycoon Idle Empire v3.4.0 +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Trash Tycoon Idle Empire By SUPERSONIC STUDIOS LTD
      Bundle ID: com.funcell.trashinc
      iTunes Store Link: https://apps.apple.com/us/app/trash-tycoon-idle-empire/id1595274680?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Trash Tycoon Idle Empire v2.6.2 +1++ Jailed Cheat [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      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
        • Thanks
        • Winner
        • Like
      • 32 replies
    • Zombie Streets: Undead Shooter v1.0.50 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Zombie Streets: Undead Shooter By Frank Slofstra
      Bundle ID: com.builditgames.zombiestreets
      iTunes Store Link: https://apps.apple.com/us/app/zombie-streets-undead-shooter/id1670656973?uo=4


      Hack Features:
      - Unlimited Currencies
      - God Mode
      - One-Hit Kill


      Jailbreak required hack(s): [Mod Menu Hack] Zombie Streets: Undead Shooter v1.0.19 +3 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Like
      • 48 replies
    • Zombie Streets: Undead Shooter v1.0.50 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Zombie Streets: Undead Shooter By Frank Slofstra
      Bundle ID: com.builditgames.zombiestreets
      iTunes Store Link: https://apps.apple.com/us/app/zombie-streets-undead-shooter/id1670656973?uo=4


      Hack Features:
      - Unlimited Currencies
      - God Mode
      - One-Hit Kill


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Zombie Streets: Undead Shooter v1.0.19 +3 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Haha
        • Thanks
        • Winner
        • Like
      • 51 replies
    • Tile Family®:Match Puzzle Game v1.73.1 +5 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Tile Family®:Match Puzzle Game By Jump Plaid GmbH
      Bundle ID: com.tile.match.blockpuzzle
      iTunes Store Link: https://apps.apple.com/us/app/tile-family-match-puzzle-game/id6444056676?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Lives -> Use coins.
      - Unlimited Stars -> Earn or spend some.
      - Unlimited Boosters -> Earn or spend some.
      - No Ads


      Jailbreak required hack(s): [Mod Menu Hack] Tile Family®:Match Puzzle Game v1.54.1 +5 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      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
        • Like
      • 29 replies
    • Combat Quest - Archer Hero RPG v1.48.6 +2 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Combat Quest - Archer Hero RPG By CHILLGAMING LTD
      Bundle ID: com.chillgaming.combatquest
      iTunes Store Link: https://apps.apple.com/us/app/combat-quest-archer-hero-rpg/id1558423382?uo=4


      Hack Features:
      - Damage Multiplier
      - Defence Multiplier


      Jailbreak required hack(s): [Mod Menu Hack] Combat Quest - Archer Hero RPG v1.46.0 +2 Cheats [ Damage & Defence ] - Free Jailbroken Cydia Cheats - iOSGods
      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
        • Winner
        • Like
      • 37 replies
    • Combat Quest - Archer Hero RPG v1.48.6 +2 Cheats [ Damage & Defence ]
      Modded/Hacked App: Combat Quest - Archer Hero RPG By CHILLGAMING LTD
      Bundle ID: com.chillgaming.combatquest
      iTunes Store Link: https://apps.apple.com/us/app/combat-quest-archer-hero-rpg/id1558423382?uo=4


      Hack Features:
      - Damage Multiplier
      - Defence Multiplier


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Combat Quest - Archer Hero RPG v1.46.0 +2 Jailed Cheats [ Damage & Defence ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Winner
        • Like
      • 12 replies
    • Tile Family®:Match Puzzle Game v1.73.1 +5 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Tile Family®:Match Puzzle Game By Jump Plaid GmbH
      Bundle ID: com.tile.match.blockpuzzle
      iTunes Store Link: https://apps.apple.com/us/app/tile-family-match-puzzle-game/id6444056676?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Lives -> Use coins.
      - Unlimited Stars -> Earn or spend some.
      - Unlimited Boosters -> Earn or spend some.
      -- No Ads


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Tile Family®:Match Puzzle Game v1.54.1 +5 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Thanks
        • Like
      • 35 replies
    • Soccer Superstar v1.6.4 +3 Jailed Cheats [ Unlimited Rewinds ]
      Modded/Hacked App: Soccer Superstar By SIMFACE LIMITED
      Bundle ID: soccer.score.star
      iTunes Store Link: https://apps.apple.com/us/app/soccer-superstar/id1550945606?uo=4


      Hack Features:
      - Unlimited Rewinds
      - Big Goals
      - Free In-App Purchases -> Toggle via iGMenu.


      Jailbreak required hack(s): [Mod Menu Hack] Soccer Superstar v1.5.1 +3 Cheats [ Unlimited Rewinds ] - Free Jailbroken Cydia Cheats - iOSGods
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 53 replies
    • Soccer Superstar v1.6.4 +3 Cheats [ Unlimited Rewinds ]
      Modded/Hacked App: Soccer Superstar By SIMFACE LIMITED
      Bundle ID: soccer.score.star
      iTunes Store Link: https://apps.apple.com/us/app/soccer-superstar/id1550945606?uo=4


      Hack Features:
      - Unlimited Rewinds
      - Big Goals
      - Free In-App Purchases


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Soccer Superstar v1.5.1 +3 Jailed Cheats [ Unlimited Rewinds ] - Free Non-Jailbroken IPA Cheats - iOSGods
      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
      • 36 replies
    • Monster Survivors v1.16.4 +5 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Monster Survivors By Voodoo
      Bundle ID: games.rivvy.monstersurvivors
      iTunes Store Link: https://apps.apple.com/us/app/monster-survivors/id6463493974?uo=4


      Hack Features:
      - Damage Multiplier
      - Defence Multiplier
      - Move Speed Multiplier
      - Unlimited Currencies -> Spend some.
      - Unlock All -> Head over to Settings and toggle the Music button.


      Jailbreak required hack(s): [Mod Menu Hack] Monster Survivors v1.5 +5 Cheats [ Damage & Defence ] - Free Jailbroken Cydia Cheats - iOSGods
      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
      • 145 replies
    • Monster Survivors v1.16.4 +5 Cheats [ Damage & Defence ]
      Modded/Hacked App: Monster Survivors By Voodoo
      Bundle ID: games.rivvy.monstersurvivors
      iTunes Store Link: https://apps.apple.com/us/app/monster-survivors/id6463493974?uo=4


      Hack Features:
      - Damage Multiplier
      - Defence Multiplier
      - Move Speed Multiplier
      - Unlimited Currencies -> Spend some.
      - Unlock All -> Head into Settings and toggle the Music button.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Monster Survivors v1.5 +4 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      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
      • 76 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