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

    • Monster Legends: Collect all Cheats v18.1.2 +8
      Modded/Hacked App: Monster Legends: Merge RPG By Socialpoint
      Bundle ID: es.socialpoint.MonsterCity
      iTunes Store Link: https://apps.apple.com/us/app/monster-legends-merge-rpg/id653508448?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Cydia, Sileo or Zebra).

       

      🤩 Hack Features

      - 1 Hit Kill
      - Skip Enemy Turn
      - Multiply Attack
      - Multiply Defense
      - Insane Score (Always 3 Stars)
      - No Skill Cost
      - Auto Win
      - Auto Play Battle Enabled for All Maps


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/topic/140543-monster-legends-collect-all-v1778-5-cheats-for-jailed-idevices/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/176914-monster-legends-collect-all-cheats-v1779-8/
        • Thanks
      • 352 replies
    • Eatventure v1.43.0 Jailed Cheats +2
      Modded/Hacked App: Eatventure By Lessmore UG haftungsbeschraenkt
      Bundle ID: com.hwqgrhhjfd.idlefastfood
      iTunes Store Link: https://apps.apple.com/us/app/eatventure/id1600871388?uo=4


      Hack Features:
      - Freeze Currencies
      - Free iAP (Turn on inside iOSGods Mod Menu first)


      Jailbreak required hack(s): https://iosgods.com/topic/168170-eatventure-cheats-all-versions-1/


      iOS Hack Download IPA Link: https://iosgods.com/topic/168169-eatventure-v110-jailed-cheats-2/
      • 357 replies
    • Battle Legion - Mass Battler Cheats v4.4.2 +4
      Modded/Hacked App: Battle Legion - Mass Battler By GODSPEED GAMING SOLUTIONS PRIVATE LIMITED
      Bundle ID: com.traplight.battleslides
      iTunes Store Link: https://apps.apple.com/us/app/battle-legion-mass-battler/id1435133042?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Multiply Attack
      - Multiply Defense
      - Instant Win
      - Enemies Don't Move
      - Enemies Don't Attack

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/129669-battle-legion-mass-battler-cheats-v424-4/
      • 580 replies
    • Jetpack Joyride Cheats v1.100.2 +8
      Modded/Hacked App: Jetpack Joyride By Halfbrick
      Bundle ID: com.halfbrick.jetpack
      iTunes Store Link: https://apps.apple.com/us/app/jetpack-joyride/id457446957?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Infinite Coins
      - High Score
      - God Mode
      - Free Shopping
      - Coin Magnet Enabled
      - Increased Magnet Range
      - All Items Owned
      - All Gadgets Unlocked

       

      Non-Jailbroken Hack: https://iosgods.com/topic/119791-jetpack-joyride-v1971-jailed-cheats-8/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/119788-jetpack-joyride-cheats-v1972-8/
      • 505 replies
    • My Talking Tom Friends Cheats v25.3 +2
      Modded/Hacked App: My Talking Tom Friends By Outfit7 Limited
      Bundle ID: com.outfit7.mytalkingtomfriends
      iTunes Store Link: https://apps.apple.com/us/app/my-talking-tom-friends/id1473424857?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Infinite Coins
      - No Ads

      Non-Jailbroken Hack: https://iosgods.com/topic/128377-my-talking-tom-friends-v392-jailed-cheats-2/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/128376-my-talking-tom-friends-cheats-v2510-2/
      • 154 replies
    • BitLife - Life Simulator Cheats v3.19.9 +2
      Modded/Hacked App: BitLife - Life Simulator by Candywriter, LLC
      Bundle ID: com.wtfapps.apollo16
      iTunes Store Link: https://apps.apple.com/us/app/bitlife-life-simulator/id1374403536?uo=4&at=1010lce4


      Hack Features:
      - Infinite Cash
      - Free Bitizen Purchase (Press Cancle) - Work for All Versions


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/84167-arm64-bitlife-life-simulator-v1412-jailed-cheats-2/


      Hack Download Link: https://iosgods.com/topic/84223-arm64-bitlife-life-simulator-cheats-all-versions-2/
      • 3,684 replies
    • [ Chiikawa Pocket JP ] ちいかわぽけっと v1.4.0 Jailed Cheats +3
      Modded/Hacked App: ちいかわぽけっと By Applibot Inc.
      Bundle ID: jp.co.applibot.chiikawapocket
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%81%A1%E3%81%84%E3%81%8B%E3%82%8F%E3%81%BD%E3%81%91%E3%81%A3%E3%81%A8/id6596745408?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - God Mode
      - Multiply Attack
      - Custom Speed (Customize before Login or Clear stage to get apply)

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/194281-chiikawa-pocket-jp-%E3%81%A1%E3%81%84%E3%81%8B%E3%82%8F%E3%81%BD%E3%81%91%E3%81%A3%E3%81%A8-v1111-jailed-cheats-3/
      • 28 replies
    • Chiikawa Pocket Cheats v1.4.0 +3
      Modded/Hacked App: Chiikawa Pocket By Applibot Inc.
      Bundle ID: jp.co.applibot.chiikawapocketgl
      iTunes Store Link: https://apps.apple.com/us/app/chiikawa-pocket/id6740838442?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - God Mode
      - Multiply Attack

       

      Non-Jailbroken Hack: https://iosgods.com/topic/193718-chiikawa-pocket-v111-jailed-cheats-2/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/193717-chiikawa-pocket-cheats-v111-2/
      • 50 replies
    • Township: Farm & City Building v29.1.0 Jailed Cheats +2
      Modded/Hacked App: Township by PLR Worldwide Sales Limited
      Bundle ID: com.playrix.township-ios
      iTunes Store Link: https://apps.apple.com/us/app/township/id638689075?uo=4&at=1010lce4


      Hack Features:
      - Freeze Currencies

      EDIT: Please be aware that this maybe cause your account banned, please use with caution and don’t abuse


      iOS Hack Download Link: https://iosgods.com/topic/116584-arm64-township-farm-city-building-v852-jailed-cheats-2/
      • 1,720 replies
    • Last Day On Earth: Survival v1.38.2 +36 FREE Hacks
      Modded/Hacked App: Last Day on Earth: Survival By Andrey Pryakhin
      Bundle ID: zombie.survival.craft.z
      iTunes Link: https://itunes.apple.com/us/app/last-day-on-earth-survival/id1241932094

      Hack Features:
      - Coins Hack - Spend/Buy something that costs Coins to increase Coins!
      - Durability Hack - Weapons, Clothes, Boots, etc. Will not break. You can always keep using them.
      - Crafting Hack - Able to craft stuff without required items!
      - Skill Points Hack - Skill Points won't decrease, reset to increase.
      - Duplicate Items Hack - Split Items to duplicate them! Now it will duplicate by 20!
      - Loot box hack - Open 1 lootbox for 1000! - x64 only
      - Items increase when Taking from Inbox. You will never run out of Items in your inbox! - x64 only
      - Minigun Doesn't Overheat - x64 only
      - Unlimited Energy. Energy Increases instead of subtracting! - x64 only
      - Bow One Hit Kill - x64 only
      - Anti-Ban

      During the month of December, we have decided to make the ViP hack for free for all users! :) Extra features include:
      • 30,148 replies
    • Spin Go - Lucky Hero Cheats v1.18 +5
      Modded/Hacked App: Spin Go - Lucky Hero By Gemini Network
      Bundle ID: spin.hero.battle.master
      App Store Link: https://apps.apple.com/us/app/spin-go-lucky-hero/id6740072501?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - God Mode
      - Multiply Attack
      - Freeze Currencies
      - Enable Debug Menu
      - Free Battle Pass Purchase (Click on Buy and done)

       

      Non-Jailbroken Hack: https://iosgods.com/topic/198306-spin-go-lucky-hero-v118-jailed-cheats-5/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/198304-spin-go-lucky-hero-cheats-v118-5/
      • 4 replies
    • Dead Zombie: Idle Strategy RPG v1.73 [+3 Jailed Cheats]
      Modded/Hacked App: Dead Zombie: Idle Strategy RPG By Bliss Games SL
      Bundle ID: com.BlissGames.Juego95
      App Store Link: https://apps.apple.com/us/app/dead-zombie-idle-strategy-rpg/id6475586273?uo=4

       

      🤩 Hack Features

      - Never Die
      - Always Can Upgrade
      - Always Can Purchase
      • 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