Jump to content

How do you write in code a BOOL with argument and return value


Go to solution Solved by ITz_kser,

29 posts in this topic

Recommended Posts

  • Replies 28
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted (edited)

Isnt it pass-through by default?

well if it is do you write argument under return value? also forgot to mention that it is a bool with a return value and int with an argument #1

Updated by GodlyOne
Posted

k thx heres the code: i seem to be getting something wrong when i make as well:

%hook CRCredentialManager
-(BOOL)isPremiumForMediaType:(int) {
return TRUE;
}
%end

%hook CRUser
-(BOOL)isPremiumForMediaType:(int) {
return TRUE;
}
%end

%hook CRPurchaseManager
-(BOOL)hasPremiumProduct {
return TRUE;
}
-(BOOL)hasPremiumPlusProduct {
return TRUE;
}
%end

%hook CRPhoneMediaViewController
-(BOOL)userIsPremium {
return TRUE;
}
%end

Posted

 

k thx heres the code: i seem to be getting something wrong when i make as well:

%hook CRCredentialManager
-(BOOL)isPremiumForMediaType:(int) {
return TRUE;
}
%end

%hook CRUser
-(BOOL)isPremiumForMediaType:(int) {
return TRUE;
}
%end

%hook CRPurchaseManager
-(BOOL)hasPremiumProduct {
return TRUE;
}
-(BOOL)hasPremiumPlusProduct {
return TRUE;
}
%end

%hook CRPhoneMediaViewController
-(BOOL)userIsPremium {
return TRUE;
}
%end

Hm, I can't see whats wrong...

 

go to terminal and write this:

 

 

make package &>> error.txt

 

then go to your project folder and open error.txt, copy all of it and paste it here.

Posted (edited)

@@DiDA @@Zimon

 

/var/mobile/crunchyrollv2510/theos/makefiles/targets/Darwin-arm/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.
/var/mobile/crunchyrollv2510/theos/makefiles/targets/Darwin-arm/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak crunchyrollv2510...
Preprocessing Tweak.xm...
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Compiling Tweak.xm...
Tweak.xm:2:117: error: expected class member or base class name
static BOOL _logos_method$_ungrouped$CRCredentialManager$isPremiumForMediaType(CRCredentialManager* self, SEL _cmd):(int) {
^
Tweak.xm:2:117: error: expected '{' or ','
Tweak.xm:2:116: error: only constructors take base initializers
static BOOL _logos_method$_ungrouped$CRCredentialManager$isPremiumForMediaType(CRCredentialManager* self, SEL _cmd):(int) {
^
Tweak.xm:8:91: error: expected class member or base class name
static BOOL _logos_method$_ungrouped$CRUser$isPremiumForMediaType(CRUser* self, SEL _cmd):(int) {
^
Tweak.xm:8:91: error: expected '{' or ','
Tweak.xm:8:90: error: only constructors take base initializers
static BOOL _logos_method$_ungrouped$CRUser$isPremiumForMediaType(CRUser* self, SEL _cmd):(int) {
^
6 errors generated.
make[2]: *** [obj/Tweak.xm.7caf8c0e.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [crunchyrollv2510.all.tweak.variables] Error 2

Updated by GodlyOne
  • Solution
Posted

Sorry, I'm new to hacking myself, I'll tag people who can help you with this.

 

I don't understand :/

 

@DiDA

@shmoo

@Johnkittz

@--Techarmor--

 

You'll get help soon!

Hey don't forgot me i know how to hack with MShook :ermm:

k thx heres the code: i seem to be getting something wrong when i make as well:

 

%hook 

%hook CRUser
-(BOOL)isPremiumForMediaType:(int) {
return TRUE;
}
%end

%hook CRPurchaseManager
-(BOOL)hasPremiumProduct {
return TRUE;
}
-(BOOL)hasPremiumPlusProduct {
return TRUE;
}
%end

%hook CRPhoneMediaViewController
-(BOOL)userIsPremium {
return TRUE;
}
%end
Write it like this

CRCredentialManager
-(BOOL)isPremiumForMediaType:(int)arg1 {
return TRUE;
%orig(arg1);
}
%end
And if you want to return the arg1 just make it like this

CRCredentialManager
-(BOOL)isPremiumForMediaType:(int)arg1 {
return TRUE;
arg1 = 99999;
%orig(arg1);
}
%end
Also you can change the arg1 to any name you want :)

and let's say you have more than 1 argument

CRCredentialManager
-(BOOL)isPremiumForMediaType:(int)arg1:(BOOL)arg2 {
return TRUE;
arg1 = 9999;
%orig(arg1, arg2)
}
%end
^_^
Posted

Hey don't forgot me i know how to hack with MShook :ermm:

Write it like this

CRCredentialManager
-(BOOL)isPremiumForMediaType:(int)arg1 {
return TRUE;
%orig(arg1);
}
%end
And if you want to return the arg1 just make it like this

CRCredentialManager
-(BOOL)isPremiumForMediaType:(int)arg1 {
return TRUE;
arg1 = 99999;
%orig(arg1);
}
%end
Also you can change the arg1 to any name you want :)

and let's say you have more than 1 argument

CRCredentialManager
-(BOOL)isPremiumForMediaType:(int)arg1:(BOOL)arg2 {
return TRUE;
arg1 = 9999;
%orig(arg1, arg2)
}
%end
^_^

 

thx a lot man but for the last one where u had 2 arguments wheres the second argument i can only see 1 also why do you call back the argument originally?

Posted (edited)

thx a lot man but for the last one where u had 2 arguments wheres the second argument i can only see 1 also why do you call back the argument originally?

He only showed you the second argument as an example for future purpose. 

Updated by Pro

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

    • Dice Dreams Cheats v1.94.1 +2
      Modded/Hacked App: Dice Dreams™ By SuperPlay LTD
      Bundle ID: com.superplaystudios.dicedreams
      iTunes Store Link: https://apps.apple.com/us/app/dice-dreams/id1484468651?uo=4


      Hack Features:
      - Custom Rolls
      - Unlimited Coins - afford regardless of if you have enough


      iOS Hack Download Link: https://iosgods.com/topic/138011-dice-dreams%E2%84%A2-v1692-2-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 638 replies
    • Archero Cheats v7.0.0 +5 [ God Mode & More ]
      Modded/Hacked App: Archero by HABBY PTE. LTD.
      Bundle ID: com.habby.archero
      iTunes Store Link: https://apps.apple.com/us/app/archero/id1453651052?uo=4&at=1010lce4



      Hack Features:
      - Multiply Defense to
      - Multiply Damage to
      - God Mode
      - OHK (Must use with God Mode)
      - Freeze Enemies

      NOTE: If you want to use god mode and ohk turn off multiply damage and defense first. I added multiply damage and defense there to avoid ban


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/100710-archero-v210-enemies-dont-attack-x30-attack/


      Hack Download Link: https://iosgods.com/topic/96783-arm64-archero-cheats-v220-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 15,873 replies
    • Westland Survival - Cowboy RPG v10.1.0 +7 [ Items Cheat ]
      Modded/Hacked App: Westland Survival - Cowboy RPG By HELIO LTD
      Bundle ID: com.heliogames.a1
      iTunes Store Link: https://apps.apple.com/us/app/westland-survival-cowboy-rpg/id1339238576?uo=4


      Hack Features:
      - Unlimited Energy / Instant Energy Refills
      - Unlock All Blueprints
      - Items Duplicate When Split / Items Hack
      - Unlimited Consumable Items
      - Unlimited Item Durability
      - God Mode / Never Die -> Linked with enemies. Useful for looting.
      - One Hit Kill / High Damage -> Linked with enemies. Use with caution.


      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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 430 replies
    • Subway Surfers Cheats v3.49.2 +5
      Modded/Hacked App: Subway Surfers By Sybo Games ApS
      Bundle ID: com.kiloo.subwaysurfers
      iTunes Store Link: https://apps.apple.com/us/app/subway-surfers/id512939461?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

      - Free Store (not Free iAP)
      - Free iAP (ViP Only)
      - Unlock Characters Outfit
      - Custom Jump Height
      - No Clip (To end level swipe to left til you get dizzy, swipe again and you will lose)

       

      Non-Jailbroken Hack: https://iosgods.com/topic/119795-subway-surfers-v3425-jailed-cheats-5/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/119793-subway-surfers-cheats-v3430-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,338 replies
    • Township: Farm & City Building v29.0.1 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,709 replies
    • DomiNations v12.1500.1502 +40++ Cheats [ Exclusive ]
      Modded/Hacked App: DomiNations by NEXON M Inc.
      Bundle ID: com.nexonm.dominations
      iTunes Store Link: https://itunes.apple.com/us/app/dominations/id922558758


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate (from Cydia).
      - PreferenceLoader (from Cydia).


      Hack Features:
      - Unlimited Crowns/Food/Oil/Gold -> Resources will add instead of subtracting. Works with Crowns. Read note inside the feature for more information! This does not work for speeding up buildings.
      - All Achievements Unlocked
      - Freeze Crowns/Food/Oil/Gold -> Freezes Resources so they do not decrease when used! This does not work for speeding up buildings.
      - No Citizens Cost
      - Place Multiple of Same Building
      - 0 Cost to Speed Up Training Troops
      - 0 Cost to Speed Up Tactics
      - 0 Food Cost to Train Troops
      - 0 Food Cost to Upgrade Troops
      - No Timer to Upgrade Troops
      - 0 Food Cost to Train Spells
      - 0 General Train Cost
      - No General Train Cooldown
      - 0 Food Cost to Build Wonder
      - 0 Food Cost to Research Troops
      - 0 Food Cost to Upgrade Tactics
      - No Timer to Library Research
      - No Timer to Upgrade Spells
      - 0 Cost to Upgrade Buildings
      - 0 Workers Required to Upgrade
      This hack is an In-Game Mod Menu (iGMM). In order to activate the Mod Menu, tap on the iOSGods button found inside the app.
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 5,001 replies
    • BlazBlue Entropy Effect v1.1.0 +3 Cheats [ Damage + More ]
      Modded/Hacked App: BlazBlue Entropy Effect By ActGames Inc.
      Bundle ID: com.actgames.bbee.ios.gl
      App Store Link: https://apps.apple.com/us/app/blazblue-entropy-effect/id6742527094?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Freeze MP
        • Winner
        • Like
      • 9 replies
    • Train of Hope: Survival Game v1.9.1 +5 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Train of Hope: Survival Game By Samfinaco LLC
      Bundle ID: com.samfinaco.tos
      iTunes Store Link: https://apps.apple.com/us/app/train-of-hope-survival-game/id6636482655?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Unlimited Resources -> Will increase instead of decrease.
      - Unlimited Hero Experience -> Will increase instead of decrease.
        • Haha
        • Thanks
        • Winner
        • Like
      • 56 replies
    • Train of Hope: Survival Game v1.9.1 +5 Cheats [ Damage & Defence ]
      Modded/Hacked App: Train of Hope: Survival Game By Samfinaco LLC
      Bundle ID: com.samfinaco.tos
      iTunes Store Link: https://apps.apple.com/us/app/train-of-hope-survival-game/id6636482655?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Unlimited Resources -> Will increase instead of decrease.
      - Unlimited Hero Experience -> Will increase instead of decrease.
        • Agree
        • Like
      • 43 replies
    • Bloons Card Storm v5.1 +4 Jailed Cheats [ Unlimited Cards ]
      Modded/Hacked App: Bloons Card Storm By Ninja Kiwi Limited
      Bundle ID: com.ninjakiwi.bloonscardstorm
      iTunes Store Link: https://apps.apple.com/us/app/bloons-card-storm/id6478193271?uo=4


      Hack Features:
      - Unlimited Cards
      - Unlock All Cards
      - Unlock All Cosmetics -> Avatars, Card Backs etc.
      - Unlock All Heroes


      Jailbreak required hack(s): [Mod Menu Hack] Bloons Card Storm v1.00 +4 Cheats [ Unlimited Cards ] - 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
      • 30 replies
    • Bloons Card Storm v5.1 +4 Cheats [ Unlimited Cards ]
      Modded/Hacked App: Bloons Card Storm By Ninja Kiwi Limited
      Bundle ID: com.ninjakiwi.bloonscardstorm
      iTunes Store Link: https://apps.apple.com/us/app/bloons-card-storm/id6478193271?uo=4


      Hack Features:
      - Unlimited Cards
      - Unlock All Cards
      - Unlock All Cosmetics -> Avatars, Card Backs etc.
      - Unlock All Heroes


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Bloons Card Storm v1.00 +4 Cheats [ Unlimited Cards ] - 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
        • Thanks
        • Winner
        • Like
      • 32 replies
    • Merge 2 Survive: Zombie Game v1.22.2 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Merge 2 Survive: Zombie Game By Pixodust Aplicativos LTDA
      Bundle ID: com.pixodust.games.merge.survive.puzzle.game
      iTunes Store Link: https://apps.apple.com/us/app/merge-2-survive-zombie-game/id6468487156?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Diamonds
      - Unlimited Energy


      Jailbreak required hack(s): [Mod Menu Hack] Merge 2 Survive: Zombie Game v1.0.3 +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/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 32 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