Jump to content

18 posts in this topic

Recommended Posts

Posted

Hello, I'm trying to follow this tutorial here https://iosgods.com/topic/1737-tutorial-how-to-add-psedittextcell-in-a-patcher/

 

But it seems that it only explains how to use it with only 1 value. I have a (void):(double) , how would my tweak.xm look like if I want to put an argument?

 

This is what I have at the moment :

 

#define PLIST_PATH @"/var/mobile/Library/Preferences/terapref.plist"

#import <UIKit/UIKit.h>

 

inline bool GetPrefBool(NSString *key)

{

return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

}

 

#include <Foundation/Foundation.h>

 

%hook GNGame

-(void) setMoney:(double)arg1 {

if(GetPrefBool(@"kMoney")) {

arg1 = ;

return %orig;

}

%end

 

NSDictionary *iosgods = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];

return [[iosgods objectForKey:@"kMoney"] intValue];

 

}

 

%end

 

I get this error :

 

Tweak.xm:23:8: error: expected expression

arg1 = ;

^

Tweak.xm:28:1: error: void function

'_logos_method$_ungrouped$GNGame$setMoney$' should not

return a value [-Wreturn-type]

return [[iosgods objectForKey:@"kMoney"] intValue];

^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2 errors generated.

Posted
- (void)setMoney:(double)sexyass {
sexyass = NSDictionary *elvis = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];
return [[elvis objectForKey:@"money"] intValue];
%orig(sexyass);
}

do you actually read it when I answer in your support topics

Posted

 

- (void)setMoney:(double)sexyass {
sexyass = NSDictionary *elvis = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];
return [[elvis objectForKey:@"money"] intValue];
%orig(sexyass);
}
do you actually read it when I answer in your support topics

I'll try that and what do you mean if I read it?

I'll try that and what do you mean if I read it?

Okay I get it now, the thing is you don't quote me so I don't get a notification lol.

Posted

 

- (void)setMoney:(double)sexyass {
sexyass = NSDictionary *elvis = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];
return [[elvis objectForKey:@"money"] intValue];
%orig(sexyass);
}
do you actually read it when I answer in your support topics

 

Tweak.xm:22:11: error: unexpected interface name

'NSDictionary': expected expression

sexyass = NSDictionary *elvis = [NSDictionary dictiona...

^

Tweak.xm:22:25: error: use of undeclared identifier 'elvis'

sexyass = NSDictionary *elvis = [NSDictionary dictiona...

^

Tweak.xm:23:10: error: use of undeclared identifier 'elvis'

return [[elvis objectForKey:@"money"] intValue];

^

3 errors generated.

Posted (edited)

@@Crypto

 

ups stacked it

sexyass = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];
return [[elvis objectForKey:@"money"] intValue];
Updated by castix
Posted

@@Crypto

 

ups stacked it

 

sexyass = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];
return [[elvis objectForKey:@"money"] intValue];

Putting this :

 

%hook GNGame

- (void)setMoney:(double)sexyass {

sexyass = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];

return [[elvis objectForKey:@"kMoney"] intValue];

}

%end

 

 

Gives me this error :

 

Tweak.xm:22:9: error: assigning to 'double' from incompatible

type 'NSDictionary * _Nullable'

...= [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];

^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Tweak.xm:23:10: error: use of undeclared identifier 'elvis'

return [[elvis objectForKey:@"kMoney"] doubleValue];

^

2 errors generated.

make[2]: *** [obj/Tweak.xm.b8bb7c1d.o] Error 1

make[1]: *** [internal-library-all_] Error 2

make: *** [terahack.all.tweak.variables] Error 2

Posted

Putting this :

%hook GNGame

- (void)setMoney:(double)sexyass {

sexyass = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];

return [[elvis objectForKey:@"kMoney"] intValue];

}

%end

Gives me this error :

Tweak.xm:22:9: error: assigning to 'double' from incompatible

type 'NSDictionary * _Nullable'

...= [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];

^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Tweak.xm:23:10: error: use of undeclared identifier 'elvis'

return [[elvis objectForKey:@"kMoney"] doubleValue];

^

2 errors generated.

make[2]: *** [obj/Tweak.xm.b8bb7c1d.o] Error 1

make[1]: *** [internal-library-all_] Error 2

make: *** [terahack.all.tweak.variables] Error 2

Change elvis to sexyass and doubleValue to intValue

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

    • Backpacker™ Go! v1.7.7 [ +3 Cheats ] Dice Unlimited
      Modded/Hacked App: Backpacker™ Go! By Qiiwi Games AB
      Bundle ID: com.qiiwi.backpackergo
      iTunes Store Link: https://apps.apple.com/us/app/backpacker-go/id6478389736?uo=4


      Hack Features:
      - ADS NO [ Between Playing ] 
      - Cash Unlimited [ This Hack Linked Other Items - Ticket Exp Etc. Use Only Cash ] Use Another Items Maybe Game Freeze But Works  
      - Dice Unlimited
      • 36 replies
    • Backpacker™ Go! v1.7.7 [ +3 Jailed ] Dice Unlimited
      Modded/Hacked App: Backpacker™ Go! By Qiiwi Games AB
      Bundle ID: com.qiiwi.backpackergo
      iTunes Store Link: https://apps.apple.com/us/app/backpacker-go/id6478389736?uo=4



      Hack Features:
      - ADS NO [ Between Playing ] 
      - Cash Unlimited [ This Hack Linked Other Items - Ticket Exp Etc. Use Only Cash ] Use Another Items Maybe Game Freeze But Works  
      - Dice Unlimited 
      • 42 replies
    • Squishmallows Match v1.4.0 [ +2 Cheats ] Auto Win
      Modded/Hacked App: Squishmallows Match By East Side Games Inc
      Bundle ID: com.eastsidegames.squishmallows
      App Store Link: https://apps.apple.com/ph/app/squishmallows-match/id6450057167?uo=4

       

      🤩 Hack Features

      - Auto Win
      - Lives [ 0 Play Unlimited ]

      • 25 replies
    • Squishmallows Match v1.4.0 [ +2 Jailed ] Auto Win
      Modded/Hacked App: Squishmallows Match By East Side Games Inc
      Bundle ID: com.eastsidegames.squishmallows
      App Store Link: https://apps.apple.com/ph/app/squishmallows-match/id6450057167?uo=4
       

      🤩 Hack Features

      - Auto Win
      - Lives [ 0 Play Unlimited ]

      • 28 replies
    • Cooking World: Cooking Games v1.32 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Cooking World: Cooking Games By MagicSeven Co., Ltd
      Bundle ID: com.cooking.world.chef.craze.restaurant.fever
      iTunes Store Link: https://apps.apple.com/us/app/cooking-world-cooking-games/id6469040590?uo=4
       

      🤩 Hack Features

      - Gems [ Earn Some ]
      - Coins [ Earn Some ]
      - Exp [ Earn Some + Rewards ] Breakable Feature

      - Lives [ Linked With Exp ]
      • 21 replies
    • Cooking World: Cooking Games v1.32 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Cooking World: Cooking Games By MagicSeven Co., Ltd
      Bundle ID: com.cooking.world.chef.craze.restaurant.fever
      iTunes Store Link: https://apps.apple.com/us/app/cooking-world-cooking-games/id6469040590?uo=4

       

      🤩 Hack Features

      - Gems [ Earn Some ]
      - Coins [ Earn Some ]
      - Exp [ Earn Some + Rewards ] Breakable Feature 

      - Lives [ Linked With Exp ]
      • 29 replies
    • Words of Wonders: Crossword v5.3.8 [ +8 Cheats ] Auto Win
      Modded/Hacked App: Words of Wonders: Crossword By FUGO BILISIM TEKNOLOJILERI VE YAZILIM TICARET ANONIM SIRKETI
      Bundle ID: com.fugo.wow
      App Store Link: https://apps.apple.com/us/app/words-of-wonders-crossword/id1369521645?uo=4


      🤩 Hack Features

      - Auto ADS OFF

      - Auto Win

      - Gems

      - w Coins

      - Hints

      - Hammer

      - Rocket
      • 13 replies
    • Words of Wonders: Crossword v5.3.8 [ +8 Jailed ] Auto Win
      Modded/Hacked App: Words of Wonders: Crossword By FUGO BILISIM TEKNOLOJILERI VE YAZILIM TICARET ANONIM SIRKETI
      Bundle ID: com.fugo.wow
      App Store Link: https://apps.apple.com/us/app/words-of-wonders-crossword/id1369521645?uo=4
       

      🤩 Hack Features

      - Auto ADS OFF

      - Auto Win

      - Gems

      - w Coins

      - Hints

      - Hammer

      - Rocket
      • 14 replies
    • Treasure Party: Puzzle Fun! v3.15.6 [ +3 Jailed ] Coins Max
      Modded/Hacked App: Treasure Party: Puzzle Fun! By PlayQ Inc.
      Bundle ID: net.playq.treasureparty4
      iTunes Store Link: https://apps.apple.com/us/app/treasure-party-puzzle-fun/id1668898401?uo=4

       
      Hack Features

      - Coins
      - Lives
      - Moves



      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 38 replies
    • Treasure Party: Puzzle Fun! v3.15.6 [ +3 Cheats ] Coins Max
      Modded/Hacked App: Treasure Party: Puzzle Fun! By PlayQ Inc.
      Bundle ID: net.playq.treasureparty4
      iTunes Store Link: https://apps.apple.com/us/app/treasure-party-puzzle-fun/id1668898401?uo=4

       

      Hack Features

      - Coins
      - Lives
      - Moves



      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/

       

      iOS Hack Download Link


      Hidden Content

      Download Hack
      • 28 replies
    • Mr Autofire v4.4.0 [ +12 Cheats ] Currency Max
      Modded/Hacked App: Mr Autofire By Lightheart Entertainment Oy
      Bundle ID: games.lightheart.mrautofire
      iTunes Store Link: https://apps.apple.com/us/app/mr-autofire/id1483457500?uo=4


      Hack Features:
      - N0 ADS [ Reward Free ]

      - Damage 

      - Health 

      - Pet Damage

      - Rome Clear [ 1 Wave Clear ]

      Level Rearwards 

      [ Gems - Silver - Pet Card - Hero Card - Guns Card ]
      • 58 replies
    • Mr Autofire v4.4.0 [ +12 Jailed ] Currency Max
      Modded/Hacked App: Mr Autofire By Lightheart Entertainment Oy
      Bundle ID: games.lightheart.mrautofire
      iTunes Store Link: https://apps.apple.com/us/app/mr-autofire/id1483457500?uo=4


      Hack Features:

      - N0 ADS [ Reward Free ]

      - Damage 

      - Health 

      - Pet Damage

      - Rome Clear [ 1 Wave Clear ]

      Level Rearwards 

      [ Gems - Silver - Pet Card - Hero Card - Guns Card ]
      • 27 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