-
Posts
2,778 -
Joined
-
Last visited
Everything posted by Patricktph
-
I got the hack switch in my settings but when I turn it on or off it doesn't do anything in the app but Normaly with out the switch for on and off it works.. THIS IS MY TWEAK.xm #define PLIST_PATH @"/var/mobile/Library/Preferences/ptest.plist" inline bool GetPrefBool(NSString *key) { return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue]; } %hook MagicPerformanceStats -(bool) isPerfect { if(GetPrefBool(@"kPlan")) { return true; } return %orig; } %end AND THIS IS MY Plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>items</key> <array> <dict> <key>cell</key> <string>PSGroupCell</string> <key>footerText</key> <string>Magic Piano</string> </dict> <dict> <key>cell</key> <string>PSSwitchCell</string> <key>default</key> <true/> <key>defaults</key> <string>com.techprohacker.ptest</string> <key>key</key> <string>kPlan</string> <key>label</key> <string>VIP ACCESS</string> </dict> </array> <key>title</key> <string>ptest</string> </dict> </plist>
-
Yea, but I have a question what if I want to add it to more switches Yes but I still have one question if I want to make more than 1 switching an just add this if(GetPrefBool(@"kPlan")) { before return then and add the %orig;
-
Help/Support Another compiling error making for a preference bundle
Patricktph replied to Patricktph's topic in Help & Support
Okay it worked I got I switch in my settings but I'm not sure if it actually works I will have to test it.. Thank you so Much DIDA (aka) The BOSS;) -
Help/Support Another compiling error making for a preference bundle
Patricktph replied to Patricktph's topic in Help & Support
So then after that I'm going to be left with the headers do I copy them and paste them into /var/theos/include too? -
Help/Support Another compiling error making for a preference bundle
Patricktph replied to Patricktph's topic in Help & Support
When I installed the headers I clicked unarchiver then it installed but then it made a another folder called "include" with headers and some other folders in it. So idk what you mean by "correct Extract them there" installed the headers I clicked unarchiver then it installed but then it made a another folder called "include" with headers and some other folders in it. So idk what you mean by "correct Extract them there" -
Help/Support Another compiling error making for a preference bundle
Patricktph replied to Patricktph's topic in Help & Support
So do I paste this headers in/ var/theos/include. ? -
It says it's not in the .h file but it's there Compiling ptest.mm... In file included from ptest.mm:1: ./ptest.h:1:9: fatal error: 'Preferences/Preferences.h' file not found #import <Preferences/Preferences.h> ^ 1 error generated. make[3]: *** [obj/ptest.mm.d96b3db5.o] Error 1 make[2]: *** [internal-bundle-all_] Error 2 make[1]: *** [ptest.all.bundle.variables] Error 2 make: *** [internal-all] Error 2 iPhone:/var/mobile/magicpiano root# THIS IS THE CODE THAT IS PASTED IN THE .h #import <Preferences/Preferences.h> @interface ptestListController: PSListController { } @end
-
Welcome! What's good:)
-
Welcome to Awesome,helpful IG
-
Introduction A very late introduction.
Patricktph replied to IronFury's topic in Member Introductions
Hey, welcome -
Introduction Hello, I'm ZeroCool :D
Patricktph replied to ZeroCool111's topic in Member Introductions
Welcome to IG -
Welcome.
-
Welcome
-
Do I paste The whole thing into Tweak.xm ?
-
I keep getting this I don't know how to fix it Tweak.xm:18:4: error: use of undeclared identifier 'GetPrefBool' if(GetPrefBool(@"kPlan")) { ^ 1 error generated. make[2]: *** [obj/Tweak.xm.af20312e.o] Error 1 make[1]: *** [internal-library-all_] Error 2 make: *** [magicPiano.all.tweak.variables] Error 2 iPhone:/var/mobile/magicpiano root# THIS IS THE LINE IN THE TWEAK.XM %hook MagicSubscriptionPlan -(int) period { if(GetPrefBool(@"kPlan")) { return 999999999; } return %orig; } %end
-
Welcome to IG
-
Reply to my pm I think I got something
-
Testing
-
Help/Support Question. Need help error 256
Patricktph replied to gymnast_jesse's topic in Help & Support
Did you get it in I file or... -
Testing 1; good job
-
Hello.. Welcome to IG
-
Help/Support Got and error while making a UIPopup
Patricktph replied to Patricktph's topic in Help & Support
Thank you Shmoo Thank you Dida -
Flex Reflec Beat Plus Unlock 100% Store Patcher (4.2.0)
Patricktph replied to XPG.'s topic in DIY Cheats
Don't we this really work -
Lol;Pm me
-
But you still level up right.. I think that's still good;)