Jump to content

Patricktph

Senior Member
  • Posts

    2,778
  • Joined

  • Last visited

Everything posted by Patricktph

  1. 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>
  2. 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;
  3. 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;)
  4. 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?
  5. 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"
  6. So do I paste this headers in/ var/theos/include. ?
  7. 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
  8. Welcome! What's good:)
  9. Welcome to Awesome,helpful IG
  10. Welcome
  11. Do I paste The whole thing into Tweak.xm ?
  12. 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
  13. Welcome to IG
  14. Reply to my pm I think I got something
  15. Testing
  16. Did you get it in I file or...
  17. Testing 1; good job
  18. Hello.. Welcome to IG
  19. Thank you Shmoo Thank you Dida
  20. Don't we this really work
  21. But you still level up right.. I think that's still good;)
×
  • 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