Jump to content

16 posts in this topic

Recommended Posts

Posted (edited)

hmm ,well, when i compile it , it says "you fell off the face of earth '{' 

Did you %end the function?

 

Or maybe you are missing stuff in your other functions.

Updated by Chrizk0
Posted (edited)

Did you %end the function?

 

Or maybe you are missing stuff in your other functions.

The missing '{' like I said. Maybe he copied the code before you edited it.

 

@Vegito Alternatively you can use

if (myObj.boolJail) {
// This will execute if boolJail is set to True
}

[The -(id) > return %orig, Just a pass-through.Wont delete the argument. Am i correct?

What? Updated by castix
Posted

Did you %end the function?

 
 
 
%hook SSJailbreakCheck
+ (id)runningProcesses 
{
if(GetPrefBool(@"kJail")) {
 
return [NSNumber numberWithInt:0];   
}
return %orig;
}
 
 
 
 
 
+ (int)filesExistCheck 
{
if(GetPrefBool(@"kJail")) {
 
return 0;
}
return %orig;
}
 
 
 
 
+ (int)symbolicLinkCheck
 {
if(GetPrefBool(@"kJail")) {
 
return 0;
}
return %orig;
}
 
 
 
 
 
+ (int)systemCheck
 {
if(GetPrefBool(@"kJail")) {
 
return 0;
}
return %orig;
}
 
 
 
 
+ (int)fstabCheck 
{
if(GetPrefBool(@"kJail")) {
 
return 0;
}
return %orig;
}
 
 
 
 
+ (int)processesCheck
{
if(GetPrefBool(@"kJail")) {
 
return 0;
}
return %orig;
}
 
 
 
+ (int)plistCheck 
{
if(GetPrefBool(@"kJail")) {
 
return 0;
}
return %orig;
}
 
 
 
+ (int)inaccessibleFilesCheck 
{
if(GetPrefBool(@"kJail")) {
 
return 0;
}
return %orig;
}
 
 
 
+ (int)cydiaCheck 
{
if(GetPrefBool(@"kJail")) {
 
return 0;
}
return %orig;
}
 
+ (int)urlCheck 
{
return 0;
}
return %orig;
}
 
 
 
 
 
+ (int)jailbroken 
{
if(GetPrefBool(@"kJail")) {
 
return 0;
}
return %orig;
}
%end
 
 
 
you mean i should use %end everytime i use if(GetPrefBool(@"kXyz")?

The missing '{' like I said. Maybe he copied the code before you edited it.

 

@Vegito Alternatively you can use

if (myObj.boolJail) {
// This will execute if boolJail is set to True
}
What?

 

No, i compiled the tweak without any preference loader in a noob way, it started to show me errors as soon as i started with preference loader

Posted

 

 
 
 
%hook SSJailbreakCheck
+ (id)runningProcesses 
{
if(GetPrefBool(@"kJail")) {
 
return [NSNumber numberWithInt:0];   
}
return %orig;
}
 
 
 
 
 
+ (int)filesExistCheck 
{
if(GetPrefBool(@"kJail")) {
 
return 0;
}
return %orig;
}
 
 
 
 
+ (int)symbolicLinkCheck
 {
if(GetPrefBool(@"kJail")) {
 
return 0;
}
return %orig;
}
 
 
 
 
 
+ (int)systemCheck
 {
if(GetPrefBool(@"kJail")) {
 
return 0;
}
return %orig;
}
 
 
 
 
+ (int)fstabCheck 
{
if(GetPrefBool(@"kJail")) {
 
return 0;
}
return %orig;
}
 
 
 
 
+ (int)processesCheck
{
if(GetPrefBool(@"kJail")) {
 
return 0;
}
return %orig;
}
 
 
 
+ (int)plistCheck 
{
if(GetPrefBool(@"kJail")) {
 
return 0;
}
return %orig;
}
 
 
 
+ (int)inaccessibleFilesCheck 
{
if(GetPrefBool(@"kJail")) {
 
return 0;
}
return %orig;
}
 
 
 
+ (int)cydiaCheck 
{
if(GetPrefBool(@"kJail")) {
 
return 0;
}
return %orig;
}
 
+ (int)urlCheck 
{
return 0;
}
return %orig;
}
 
 
 
 
 
+ (int)jailbroken 
{
if(GetPrefBool(@"kJail")) {
 
return 0;
}
return %orig;
}
%end
 
 
 
you mean i should use %end everytime i use if(GetPrefBool(@"kXyz")?

 

Yes now make a PSSwitchCell with the (kJail) key, that one switch will contain all those functions. 

Posted
...

 

You forgot to open the code block for every method for example

+ (int)filesExistCheck {
    if(myObj.boolJail) {
    return 0;
    }
    %orig;
}
Posted

i didn't copy any code from anywhere, i have made my tweak.xm backup on pc, i am simply copying it and pasting it here 


 

You forgot to open the code block for every method for example

+ (int)filesExistCheck {
    if(myObj.boolJail) {
    return 0;
    }
    %orig;
}

damn man :o thanks! let me try! 


 

You forgot to open the code block for every method for example

+ (int)filesExistCheck {
    if(myObj.boolJail) {
    return 0;
    }
    %orig;
}

i have given opening and closing parenthesis properly. It's not the opening of code block i guess.

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

    • Fortress Saga: AFK RPG v2.0.23 Jailed Cheats +3
      Modded/Hacked App: Fortress Saga: AFK RPG By cookapps
      Bundle ID: com.cookapps.bm.fortresssaga
      App Store Link: https://apps.apple.com/us/app/fortress-saga-afk-rpg/id6446308106?uo=4

       


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Damage Multiplier
      - Defense Multiplier
      - Freeze Currencies



      iOS Hack Download IPA Link: https://iosgods.com/topic/184193-fortress-saga-afk-rpg-v2013-jailed-cheats-3/
      • 210 replies
    • Cat Legends : Idle RPG Game Cheats v1.1.35 +3
      Modded/Hacked App: Cat Legends : Idle RPG Game By PT Dreams Studio Indonesia
      Bundle ID: com.DreamsStudio.CatLegendsIdleRPGs
      iTunes Store Link: https://apps.apple.com/us/app/cat-legends-idle-rpg-game/id6476254307?uo=4


      Hack Features:
      - God Mode
      - Multiply Attack
      - Freeze Resources


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
       


      iOS Hack Download Link: https://iosgods.com/topic/183297-cat-legends-idle-rpg-game-cheats-v103-3/
      • 77 replies
    • Solo Leveling:Arise v1.3.45 Jailed Cheats +2
      Modded/Hacked App: Solo Leveling:Arise By Netmarble Corporation
      Bundle ID: com.netmarble.sololv
      iTunes Store Link: https://apps.apple.com/us/app/solo-leveling-arise/id1662742277?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Immunte to Physical Damage
      - Multiply Attack



      iOS Hack Download IPA Link: https://iosgods.com/topic/184739-solo-levelingarise-v1265-jailed-cheats-2/
      • 444 replies
    • [PH / TW] Greedy Cave: Rebirth v1.1.000 Jailed Cheats +2
      Modded/Hacked App: Greedy Cave: Rebirth By Chengdu Avalon Interactive Entertainment Co.,Ltd.
      Bundle ID: com.avalon.c1p.global
      App Store Link: https://apps.apple.com/ph/app/greedy-cave-rebirth/id6680191526?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

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/204005-greedy-cave-rebirth-v10310-jailed-cheats-2/
      • 13 replies
    • Genshin Impact Cheats v6.3.0 +3
      Modded/Hacked App: Genshin Impact by miHoYo Limited
      Bundle ID: com.miHoYo.GenshinImpact
      iTunes Store Link: https://apps.apple.com/us/app/genshin-impact/id1517783697?uo=4&at=1010lce4


      Hack Features:
      - Instant Skill
      - Instant Special Skill (Elemental Burst)
      - Infinite Stamina
        + Infinite Sprint Time
        + Infinite Swim Time
        + Infinite Fly Time


      iOS Hack Download Link: https://iosgods.com/topic/134035-genshin-impact-cheat-v101-3-instant-skill-more/
        • Like
      • 3,716 replies
    • Subway Surfers Cheats (Auto Update) +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/
      • 2,394 replies
    • Gear Defenders v1.2.3 [ +10 Cheats ] Currency Max
      Modded/Hacked App: Gear Defenders By MOBIBRAIN TECHNOLOGY PTE. LTD.
      Bundle ID: com.iogames.gearworld
      App Store Link: https://apps.apple.com/us/app/gear-defenders/id6740892835?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited ADS Tickets
      - Unlimited Draw
      - Unlimited Battle Coins
      - Base HP
      - Gear Speed / Faster Deploy Trop
      - Unlimited Trop / Easy Win
      - ATK / Linked
      • 16 replies
    • Gear Defenders v1.2.3 [ +10 Jailed ] Currency Max
      Modded/Hacked App: Gear Defenders By MOBIBRAIN TECHNOLOGY PTE. LTD.
      Bundle ID: com.iogames.gearworld
      App Store Link: https://apps.apple.com/us/app/gear-defenders/id6740892835?uo=4


      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited ADS Tickets
      - Unlimited Draw
      - Unlimited Battle Coins
      - Base HP
      - Gear Speed / Faster Deploy Trop
      - Unlimited Trop / Easy Win
      - ATK / Linked
      • 29 replies
    • Stealth Master: Assassin Ninja v1.12.30 +4++ Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Stealth Master: Assassin Ninja By SayGames LTD
      Bundle ID: io.highcore.stealthmaster
      iTunes Store Link: https://apps.apple.com/us/app/stealth-master-assassin-ninja/id1518389230
       

      Hack Features:
      - Damage Multiplier
      - Defence Multiplier
      - Unlimited Currencies
      - All Characters Unlocked


      Jailbreak required hack(s): https://iosgods.com/topic/173267-stealth-master-assassin-ninja-v1128-4-cheats-damage-defence/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 50 replies
    • Clusterduck v2.4.1 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Clusterduck By Prodigy Design Limited T/A Sidhe Interactive
      Bundle ID: com.pikpok.wtd.iosstore
      iTunes Store Link: https://apps.apple.com/us/app/clusterduck/id1531250914?uo=4

       
       

      🤩 Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      -- No Ads
      -- 4th Nest Purchased
      • 19 replies
    • Harry Potter: Puzzles & Spells v105.0.337 +1 Jailed Cheat [ Freeze Moves ]
      Modded/Hacked App: Harry Potter: Puzzles & Spells By Zynga Inc.
      Bundle ID: com.zynga.pottermatch
      iTunes Store Link: https://apps.apple.com/us/app/harry-potter-puzzles-spells/id1434505322?uo=4


      Hack Features:
      - Freeze Moves


      Jailbreak required hack(s): [Mod Menu Hack] Harry Potter: Puzzles & Spells v85.0.271 +1 Cheat [ Unlimited Moves ] - 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/
        • Thanks
        • Like
      • 127 replies
    • Heroes & Gear? Yoink! v3.5 +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Heroes & Gear? Yoink! By Highbrow
      Bundle ID: com.highbrow.games.mnf
      App Store Link: https://apps.apple.com/us/app/heroes-gear-yoink/id6745557169?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 21 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