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

    • We Are Legends!! v1.0.2 [+4 Jailed Cheats]
      Modded/Hacked App: We Are Legends!! By 晓娟 吴
      Bundle ID: com.onicore.zombie
      App Store Link: https://apps.apple.com/us/app/we-are-legends/id6748515203

       

      🤩 Hack Features

      - Never Die
      - Add Golds
      - Auto Win (Enable inside battle)
      - Faster Game Speed
      • 2 replies
    • We Are Legends!! v1.0.2 [+4 Cheats]
      Modded/Hacked App: We Are Legends!! By 晓娟 吴
      Bundle ID: com.onicore.zombie
      App Store Link: https://apps.apple.com/us/app/we-are-legends/id6748515203


      🤩 Hack Features

      - Never Die
      - Add Golds
      - Auto Win (Enable inside battle)
      - Faster Game Speed
      • 5 replies
    • Soul Huntress: Dungeon Crawler v1.0.6 [+3 Jailed Cheats]
      Modded/Hacked App: Soul Huntress: Dungeon Crawler By Panthera Joint Stock Company
      Bundle ID: com.pantheraplay.soulhuntress
      App Store Link: https://apps.apple.com/ph/app/soul-huntress-dungeon-crawler/id6743422594?uo=4


      🤩 Hack Features

      - Never Die
      - Unlimited Currency (Always Will Increase Spend)
      - Always Can Use Items (Even when has cooldown)
      • 20 replies
    • Soul Huntress: Dungeon Crawler v1.0.6 [+3 Cheats]
      Modded/Hacked App: Soul Huntress: Dungeon Crawler By Panthera Joint Stock Company
      Bundle ID: com.pantheraplay.soulhuntress
      App Store Link: https://apps.apple.com/ph/app/soul-huntress-dungeon-crawler/id6743422594?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Currency (Always Will Increase Spend)
      - Always Can Use Items (Even when has cooldown)
      • 26 replies
    • Zombies Clicker v20.1.14 [+4 Jailed Cheats]
      Modded/Hacked App: Zombies Clicker By EDENAP d.o.o.
      Bundle ID: com.edenap.a3
      App Store Link: https://apps.apple.com/us/app/zombies-clicker/id6746955704?uo=4


      🤩 Hack Features

      - Add Currency
      - Add Prestige
      - Never Die
      - One Hit Kill
      • 4 replies
    • Zombies Clicker v20.1.14 [+4 Cheats]
      Modded/Hacked App: Zombies Clicker By EDENAP d.o.o.
      Bundle ID: com.edenap.a3
      App Store Link: https://apps.apple.com/us/app/zombies-clicker/id6746955704?uo=4



      🤩 Hack Features

      - Add Currency
      - Add Prestige
      - Never Die
      - One Hit Kill
      • 8 replies
    • Military Games - Border Wars v13.6.1 [+3 Cheats]
      Modded/Hacked App: Military Games - Border Wars By Faraz Khan
      Bundle ID: com.zalmayapps.borderwars
      App Store Link: https://apps.apple.com/us/app/military-games-border-wars/id1609310806?uo=4



      🤩 Hack Features

      - Unlimited Gold
      - Auto Win (Enable inside battle)
      - Unlimited Money (Enable inside battle)

       
      • 2 replies
    • Military Games - Border Wars v13.6.1 [+3 Jailed Cheats]
      Modded/Hacked App: Military Games - Border Wars By Faraz Khan
      Bundle ID: com.zalmayapps.borderwars
      App Store Link: https://apps.apple.com/us/app/military-games-border-wars/id1609310806?uo=4



      🤩 Hack Features

      - Unlimited Gold
      - Auto Win (Enable inside battle)
      - Unlimited Money (Enable inside battle)
      • 1 reply
    • Galaxy Attack: Alien Shooter v5.12.17 [ +30++ Cheats ] Currency Max
      Modded/Hacked App: Galaxy Attack: Alien Shooter By DINO GAME LIMITED
      Bundle ID: com.alien.shooter.galaxy.attack
      iTunes Store Link: https://apps.apple.com/us/app/galaxy-attack-alien-shooter/id1176011642?uo=4
       

      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Linked With Battle Pass ]

      - Gold [ Linked With Battle Pass ]

      - Chest [ Linked With Battle Pass ]

      - Monthly Card Normal

      - Monthly Card Super

      - Monthly Card Premium

      - Energy NO Need [ When 0 Play Unlimited ]

      - Evolve Stone

      - Unlimited Ship [ Select Any Ship Before The Battle ]

      - Drone Ticket

      - Terminator Point

      - Tech Point

      - Overload Ball

      - Matrix Max

      - Golden Revive Max

      - Revive Unlimited

      - Campain Revive Cost Gold [ Earn With Gold ]

      - Gems Revive  [Earn With Gems ]

      - Endless Revive Cost Gold [Earn With Gold ]

      - Talent Upgrade Cost  [Earn With Gold ]

      - Battle Pass Premium Active

      - BP Free [ Claim Unlimited ]

      - BP Premium [ Claim Unlimited ]

      - BP Free Rewards Unlimited [ Gold Gems Chest Stone + More ]

      - BP Premium Rewards Unlimited [ Gold Gems Chest Stone + More ]

      - Bullet Max

      - Life Max

      - Damage

      Warning 


      Don"t Abuse The Hack In Case Banned Any Data Lose I'M Not Responsible  

       

      🍏 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/
      • 80 replies
    • Galaxy Attack: Alien Shooter v5.12.17 [ +30++ Jailed ] Currency Max
      Modded/Hacked App: Galaxy Attack: Alien Shooter By DINO GAME LIMITED
      Bundle ID: com.alien.shooter.galaxy.attack
      iTunes Store Link: https://apps.apple.com/us/app/galaxy-attack-alien-shooter/id1176011642?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

      - ADS NO [ Rewards Free ]

      - Gems [ Linked With Battle Pass ]

      - Gold [ Linked With Battle Pass ]

      - Chest [ Linked With Battle Pass ]

      - Monthly Card Normal

      - Monthly Card Super

      - Monthly Card Premium

      - Energy NO Need [ When 0 Play Unlimited ]

      - Evolve Stone

      - Unlimited Ship [ Select Any Ship Before The Battle ]

      - Drone Ticket

      - Terminator Point

      - Tech Point

      - Overload Ball

      - Matrix Max

      - Golden Revive Max

      - Revive Unlimited

      - Campain Revive Cost Gold [ Earn With Gold ]

      - Gems Revive  [Earn With Gems ]

      - Endless Revive Cost Gold [Earn With Gold ]

      - Talent Upgrade Cost  [Earn With Gold ]

      - Battle Pass Premium Active

      - BP Free [ Claim Unlimited ]

      - BP Premium [ Claim Unlimited ]

      - BP Free Rewards Unlimited [ Gold Gems Chest Stone + More ]

      - BP Premium Rewards Unlimited [ Gold Gems Chest Stone + More ]

      - Bullet Max

      - Life Max

      - Damage

      Warning 


      Don"t Abuse The Hack In Case Banned Any Data Lose I'M Not Responsible 


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/

       

      📥 iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App
      • 63 replies
    • Galaxy Attack Alien Shooter v5.12.17 [ +3 Jailed ] Never Die
      Modded/Hacked App: Galaxy Attack: Alien Shooter By DINO GAME LIMITED
      Bundle ID: com.alien.shooter.galaxy.attack
      iTunes Store Link: https://apps.apple.com/us/app/galaxy-attack-alien-shooter/id1176011642?uo=4


      Hack Features:
      - Max Bullet
      - Max Life
      - DMG



      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/
      • 60 replies
    • Galaxy Attack Alien Shooter v5.12.17 [ +3 Cheats ] Never Die
      Modded/Hacked App: Galaxy Attack: Alien Shooter By ABIGAMES PTE. LTD
      Bundle ID: com.alien.shooter.galaxy.attack
      iTunes Store Link: https://apps.apple.com/us/app/galaxy-attack-alien-shooter/id1176011642?uo=4


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


      Hack Features:
      - Max Life 
      - Damage Multi [PvP Use Only Boss ] 
      - Max Bullet



      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/


      iOS Hack Download Link:

      Hidden Content

      Download Hack
      • 212 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