Jump to content

Patricktph

Senior Member
  • Posts

    2,778
  • Joined

  • Last visited

Everything posted by Patricktph

  1. yay. that worked how can i add more switches for different hacks but with the same app
  2. Yeah here 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 Cheats</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>Always perfect</string> </dict> </array> <key>title</key> <string>ptest</string> </dict> </plist>
  3. If it says it's finished with result code 0 that's a good thing that means there's no errors Bu ready this topic it might help you out https://iosgods.com/topic/32809-how-to-easily-fix-old-deb-hacks-on-ios-93-and-higher/
  4. I just tried to turn on and off and tried to respring still got nothing
  5. 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>
  6. 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;
  7. 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;)
  8. 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?
  9. 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"
  10. So do I paste this headers in/ var/theos/include. ?
  11. 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
  12. Welcome! What's good:)
  13. Welcome to Awesome,helpful IG
  14. Welcome
  15. Do I paste The whole thing into Tweak.xm ?
  16. 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
  17. Welcome to IG
  18. Reply to my pm I think I got something
  19. Testing
  20. Did you get it in I file or...
×
  • 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