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

Posted

Hi guys i am noob at this mshooking so in the tweak.xm i know how to do return value with anything but i dont know how to write it with return value and an argument which i want to pass through

  • 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

    • MAke Drama : MAD +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: MAke Drama : MAD By Wemade Connect Co., Ltd.
      Bundle ID: com.wemadeconnect.ios.makedrama
      App Store Link: https://apps.apple.com/us/app/make-drama-mad/id6757506278?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
        • Like
      • 0 replies
    • ANOTHER EDEN Global +7 Cheats
      Mod APK Game Name: ANOTHER EDEN By WFS, Inc.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/search?q=ANOTHER EDEN

       

      🤩 Hack Features

      - Damage Multiplier
      - Never Die
      - Unlimited MP
      - Battle EXP Multiplier
      - Currency Multiplier
      - Pick Up Items Multiplier
      - Fishing Rod Fast Level

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      DDownload via the iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
        • Agree
        • Winner
      • 2 replies
    • Neo Monsters +6 Cheats
      Mod APK Game Name: Neo Monsters By ZigZaGame Inc.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.pockettrend.neomonsters

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      - Capture 100%
      - Unlimited Team Cost
      - Trainig To Max Level
      - Run = Win + Auto Capture

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download via the iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
        • Winner
        • Like
      • 1 reply
    • On Raft v1.0.0 [ +3 Cheats ] Currency Multiplier
      Modded/Hacked App: On Raft By 24 HIT Riga SIA
      Bundle ID: com.on.raft
      App Store Link: https://apps.apple.com/us/app/on-raft/id6760892302?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Currency Multiplier
      - Resources Multiplier
      - Debug Menu
        • Winner
      • 3 replies
    • On Raft v1.0.0 [ +3 Jailed ] Currency Multiplier
      Modded/Hacked App: On Raft By 24 HIT Riga SIA
      Bundle ID: com.on.raft
      App Store Link: https://apps.apple.com/us/app/on-raft/id6760892302?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Currency Multiplier
      - Resources Multiplier
      - Debug Menu
        • Winner
        • Like
      • 1 reply
    • Artillery: Fight For America v1.4.1 [ +3 Cheats ] Currency ADD
      Modded/Hacked App: Artillery: Fight For America By Dats Games LTD
      Bundle ID: dats.games.artillerymasterffa
      App Store Link: https://apps.apple.com/us/app/artillery-fight-for-america/id6503918235?uo=4

      🤩 Hack Features

      - ADS NO
      - Currency ADD
      - Currency Multiplier
      • 0 replies
    • Artillery: Fight For America v1.4.1 [ +3 Jailed ] Currency ADD
      Modded/Hacked App: Artillery: Fight For America By Dats Games LTD
      Bundle ID: dats.games.artillerymasterffa
      App Store Link: https://apps.apple.com/us/app/artillery-fight-for-america/id6503918235?uo=4

      🤩 Hack Features

      - ADS NO
      - Currency ADD
      - Currency Multiplier
      • 0 replies
    • Evolve and Win v0.3.2 [ +10 Cheats ] Debug Menu
      Modded/Hacked App: Evolve and Win By Sidra Sadeed
      Bundle ID: com.ss.apes.evolve.win
      App Store Link: https://apps.apple.com/us/app/evolve-and-win/id6772149297?uo=4

      🤩 Hack Features

      - Debug Menu
      • 0 replies
    • Evolve and Win v0.3.2 [ +10 Jailed ] Debug Menu
      Modded/Hacked App: Evolve and Win By Sidra Sadeed
      Bundle ID: com.ss.apes.evolve.win
      App Store Link: https://apps.apple.com/us/app/evolve-and-win/id6772149297?uo=4

      🤩 Hack Features

      - Debug Menu
        • Like
      • 0 replies
    • Last Combat: Z Shooter v1.0.2 [ +7 Jailed ] Auto Win
      Modded/Hacked App: Last Combat: Z Shooter By PIXEL KING PTE. LTD.
      Bundle ID: com.sg.lastaura.army.zombie.shooter
      App Store Link: https://apps.apple.com/us/app/last-combat-z-shooter/id6812733413?uo=4

      🤩 Hack Features

      - Auto Win
      - Unlimited Gems
      - Unlimited Coins
      - ADD Gems
      - ADD Coins
      - Higher Damage
      - Damage Multiplier
        • Like
      • 2 replies
    • Last Combat: Z Shooter v1.0.2 [ +7 Cheats ] Auto Win
      Modded/Hacked App: Last Combat: Z Shooter By PIXEL KING PTE. LTD.
      Bundle ID: com.sg.lastaura.army.zombie.shooter
      App Store Link: https://apps.apple.com/us/app/last-combat-z-shooter/id6812733413?uo=4

      🤩 Hack Features

      - Auto Win
      - Unlimited Gems
      - Unlimited Coins
      - ADD Gems
      - ADD Coins
      - Higher Damage
      - Damage Multiplier
      • 0 replies
    • DCKO: Super Hero Fighting Game +5 Jailed Cheats
      Modded/Hacked App: DCKO: Super Hero Fighting Game By Drop Fake Inc
      Bundle ID: com.dropfake.wb.dcko
      App Store Link: https://apps.apple.com/ph/app/dcko-super-hero-fighting-game/id6762230836?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

      - Damage Multiplier
      - Defense Multiplier
      - Skills Always Ready
      - No Tag Cooldown
      - Auto Play

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles / VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 8: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A
        • Thanks
        • Winner
        • Like
      • 19 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