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

    • Snake.io - Fun Online Snake V1.21.4 [ +12 Cheats ] AI Stupid
      Modded/Hacked App: Snake.io - Fun Online Snake By Kooapps
      Bundle ID: com.amelosinteractive.snake
      iTunes Store Link: https://apps.apple.com/us/app/snake-io-fun-online-snake/id1104692136?uo=4


      Hack Features:
      - No ADS

      - AI Stupid 

      - Skin Unlocked 

      - Revive Unlimited

      - Immortal 

      - Wall Hack

      - Boss [ Size Small ] Only Event 

      - Boss [ HP 1 ] Easy Kill [ Only Event ]

      - Eat Radius

      - Eat Multiplier 

      - Eat Size Big 🔴🔵⚫ 

      - Score Multiplier [ Linked - Eat Multiplier & Eat Size & Eat Radius ]


      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/
      • 79 replies
    • Snake.io - Fun Online Snake V1.21.4 [ +12 Jailed ] AI Stupid
      Modded/Hacked App: Snake.io - Fun Online Snake By Kooapps
      Bundle ID: com.amelosinteractive.snake
      iTunes Store Link: https://apps.apple.com/us/app/snake-io-fun-online-snake/id1104692136?uo=4


      Hack Features:

      - No ADS

      - AI Stupid 

      - Skin Unlocked 

      - Revive Unlimited

      - Immortal 

      - Wall Hack

      - Boss [ Size Small ] Only Event 

      - Boss [ HP 1 ] Easy Kill [ Only Event ]

      - Eat Radius

      - Eat Multiplier 

      - Eat Size Big 🔴🔵⚫ 

      - Score Multiplier [ Linked - Eat Multiplier & Eat Size & Eat Radius ]


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download IPA Link:

      Hidden Content

      Download via the iOSGods App
      • 80 replies
    • Puzzle & Dragons (English) v22.1.0 Jailed Cheats +2
      Modded/Hacked App: Puzzle & Dragons (English) By GungHo Online Entertainment, INC.
      Bundle ID: jp.gungho.padEN
      iTunes Store Link: https://apps.apple.com/us/app/puzzle-dragons-english/id563474464?uo=4


      Hack Features:
      - God Mode
      - One Hit Kill


      Jailbreak required hack(s): https://iosgods.com/topic/133984-puzzle-dragons-japan-english-cheats-all-versions-3/


      iOS Hack Download Link: https://iosgods.com/topic/135066-puzzle-dragons-english-v1931-jailed-cheats-2/
      • 311 replies
    • [ JP / Global/ KR] Puzzle & Dragons Cheats v22.2.0 +3
      Modded/Hacked App: Puzzle & Dragons (English) by GungHo Online Entertainment, INC.
      Bundle ID: jp.gungho.padEN
      iTunes Store Link: https://apps.apple.com/us/app/puzzle-dragons-english/id563474464?uo=4&at=1010lce4


      Hack Features:
      - God Mode
      - OHK
      - Frozen Enemies


      iOS Hack Download Link: https://iosgods.com/topic/133984-puzzle-dragons-jp-english-cheats-all-versions-3/
      • 446 replies
    • DEAD TARGET: FPS Zombie Games v6.150.0 [ +10 Cheats ] Currency Max
      Modded/Hacked App: DEAD TARGET: FPS Zombie Games By VNG SINGAPORE PTE LTD
      Bundle ID: com.vng.g6.a.zombie
      iTunes Store Link: https://apps.apple.com/us/app/dead-target-fps-zombie-games/id901793885?uo=4
       

      Hack Features

      - Unlimited Gold
      - Unlimited Cash

      - Unlimited Diamonds
      - Unlimited Grenades
      - Unlimited MedKits
      - Unlimited Ammo
      - One Hit Kill
      - God Mode
      - High Accuracy

      - ADS NO
      • 13 replies
    • DEAD TARGET: FPS Zombie Games v6.150.0 [ +10 Jailed ] Currency Max
      Modded/Hacked App: DEAD TARGET: FPS Zombie Games By VNG SINGAPORE PTE LTD
      Bundle ID: com.vng.g6.a.zombie
      iTunes Store Link: https://apps.apple.com/us/app/dead-target-fps-zombie-games/id901793885?uo=4
       

      Hack Features

      - Unlimited Gold
      - Unlimited Cash

      - Unlimited Diamonds
      - Unlimited Grenades
      - Unlimited MedKits
      - Unlimited Ammo
      - One Hit Kill
      - God Mode
      - High Accuracy

      - ADS NO
      • 21 replies
    • Chaos Road: 3D Car Racing Game v5.15.3 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Chaos Road: 3D Car Racing Game By Supercharge Mobile Corp.
      Bundle ID: com.Zeeppo.ChaosRoad
      iTunes Store Link: https://apps.apple.com/us/app/chaos-road-3d-car-racing-game/id1471023434?uo=4

      Hack Features:
      - Gems
      - Gold
      - ViP Active 
      • 15 replies
    • Chaos Road: 3D Car Racing Game v5.15.3 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Chaos Road: 3D Car Racing Game By Supercharge Mobile Corp.
      Bundle ID: com.Zeeppo.ChaosRoad
      iTunes Store Link: https://apps.apple.com/us/app/chaos-road-3d-car-racing-game/id1471023434?uo=4

      Hack Features:
      - Gems
      - Gold
      - ViP Active
      • 14 replies
    • Nighty Knight: Frontier War TD v1.0.60 [ +9 Jailed ] Currency Max
      Modded/Hacked App: Nighty Knight: Frontier War TD By Pusilung HK Limited
      Bundle ID: com.ezg011.empire.war.td.strategy.tower.defend.game
      iTunes Store Link: https://apps.apple.com/us/app/nighty-knight-frontier-war-td/id6740115606?uo=4


      🤩 Hack Features

      - Currency Unlimited [ Earns Some ] Show 0 - NaN But Works

      - Resources Unlimited [ Earns Some ] Show 0 - NaN But Works

      - Energy Cost 0 

      - Hp [ Equip Status Check ]

      - DMG [ Equip Status Check ]

      - Tower Cost

      - Silver Coins [ Build Tower ]

      - Enemy Max 1

      - Enemy Freeze
      • 31 replies
    • Nighty Knight: Frontier War TD v1.0.60 [ +9 Cheats ] Currency Max
      Modded/Hacked App: Nighty Knight: Frontier War TD By Pusilung HK Limited
      Bundle ID: com.ezg011.empire.war.td.strategy.tower.defend.game
      iTunes Store Link: https://apps.apple.com/us/app/nighty-knight-frontier-war-td/id6740115606?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

      - Currency Unlimited [ Earns Some ] Show 0 - NaN But Works

      - Resources Unlimited [ Earns Some ] Show 0 - NaN But Works

      - Energy Cost 0 

      - Hp [ Equip Status Check ]

      - DMG [ Equip Status Check ]

      - Tower Cost

      - Silver Coins [ Build Tower ]

      - Enemy Max 1

      - Enemy Freeze

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack
      • 47 replies
    • NFL Rivals - Football Game v2.3.5 [ +3 Cheats ] AI Stupid
      Modded/Hacked App: NFL Rivals - Football Game By Mythical, Inc.
      Bundle ID: com.mythical.superteam
      iTunes Store Link: https://apps.apple.com/us/app/nfl-rivals-football-game/id1640028998?uo=4


      Hack Features:
      - AI ON Your Team 
      - Tackle 
      - No Interceptions
      • 29 replies
    • NFL Rivals - Football Game v2.3.5 [ +3 Jailed ] AI Stupid
      Modded/Hacked App: NFL Rivals - Football Game By Mythical, Inc.
      Bundle ID: com.mythical.superteam
      iTunes Store Link: https://apps.apple.com/us/app/nfl-rivals-football-game/id1640028998?uo=4


      Hack Features:

      - AI ON Your Team 
      - Tackle No
      - No Interceptions
      • 17 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