Jump to content

Donald J Trump

Member
  • Posts

    78
  • Joined

  • Last visited

Everything posted by Donald J Trump

  1. @DiDA @shmoo @ZahirSher why isn't the "Thanks" button opening the url: http://YouTube.com/StarSunSunny
  2. It worked thanks BUT why isn't the "Thanks" button opening the url: http://YouTube.com/StarSunSunny
  3. It worked thanks BUT why isn't the "Thanks" button opening the url: http://YouTube.com/StarSunSunny
  4. I'm making a very basic tweak for AppStore just removing all apps from updates tab so it just states all app are up to date and I get this error, it would be awesome if you could fix or help me fix this error. Thank you. error image: The files inside the folder of project: -> My Tweak.xm: #import <UIKit/UIKit.h> %hook ASUpdatesViewController -(void) _setUpdatesPageWithUpdates:(id) fromCache:(bool) { id = NULL bool = FALSE; } %end %hook ASAppDelegate -(void)applicationDidBecomeActive:(id)application { NSUserDefaults *validate = [NSUserDefaults standardUserDefaults]; NSString *alreadyRun = @"already_run"; if ([validate boolForKey:alreadyRun]) return; [validate setBool:YES forKey:alreadyRun]; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"NoUpdatesAvailable" message:@"Initialization Finished" delegate:nil cancelButtonTitle:@"Thanks" otherButtonTitles:nil]; [alert show]; [alert release]; } -(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { if (buttonIndex != [alertView cancelButtonIndex]) { NSLog(@"Launching youtube"); [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://youtube.com/StarSunSunny"]]; } } %end -> my MakeFile: ARCHS = armv7 arm64 include theos/makefiles/common.mk TWEAK_NAME = NoUpdatesAvailable NoUpdatesAvailable_FILES = Tweak.xm NoUpdatesAvailable_FRAMEWORKS = UIKit include $(THEOS_MAKE_PATH)/tweak.mk after-install:: install.exec "killall -9 SpringBoard"
  5. Yes I did but not working still As I looked through other tweak.xm from open sourced tweaks, none of the tweak.xm(s) had #define Plist path for tweaks but only hacks. So I think the #define Plist path is screwing the tweak up
  6. Did that but sadly it's still not working, I dunno what to do since I've redid the project multiple times with different templates and used other tuts on iOSgods
  7. I'm not hacking a game I'm making a tweak for settings app.
  8. .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>SettingsSearch.</string> </dict> <dict> <key>cell</key> <string>PSSwitchCell</string> <key>default</key> <false/> <key>defaults</key> <string>com.sunny.NoSettingsSearch</string> <key>key</key> <string>key1</string> <key>label</key> <string>Search On or Off</string> </dict> <dict> <key>cell</key> <string>PSGroupCell</string> </dict> <dict> <key>cell</key> <string>PSTextCell</string> <key>label</key> <string>Made by Sunny Patel.</string> </dict> <dict> <key>action</key> <string>link</string> <key>cell</key> <string>PSButtonCell</string> <key>icon</key> <string>[email protected]</string> <key>label</key> <string>Subscribe (Button)</string> </dict> </array> <key>title</key> <string>NoSettingsSearch Tweak</string> </dict> </plist> tweak.xm: #define PLIST_PATH @"/var/mobile/Library/Preferences/com.sunny.NoSettingsSearch.plist" inline bool GetPrefBool(NSString *key) { return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue]; } %hook PSSearchController -(id)searchBar { if(GetPrefBool(@"key1")) { return NULL; } return %orig; } %end
  9. Switch Not Turning on TWEAK in preference bundle! I got the preference bundle working but the switch when I turn it on, doesn't turn the tweak on
  10. Still not working. i dunno why it's not working, is there something wrong with the .mm?
  11. @@Basmal121 but still didn't work, maybe check my prefbundle.mm file: #import "prefbundle.h" @interface prefbundleListController: PSListController { } @end @implementation prefbundleListController - (id)specifiers { if(_specifiers == nil) { _specifiers = [[self loadSpecifiersFromPlistName:@"prefbundle" target:self] retain]; } return _specifiers; } -(void)respring { system("killall -9 SpringBoard"); } -(void) apply { UIAlertView *alert1 = [[uIAlertView alloc]initWithTitle:@"NoSettingsSearch!" message:@"Made by Sunny Patel" delegate:self cancelButtonTitle:@"Thanks" otherButtonTitles:nil]; [alert1 show]; } -(void) link { [[uIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.c...tarSunSunny]]; } @end // vim:ft=objc
  12. Pasted exactly what he "fixed" into the right files but still didn't work, maybe check my prefbundle.mm file: #import "prefbundle.h" @interface prefbundleListController: PSListController { } @end @implementation prefbundleListController - (id)specifiers { if(_specifiers == nil) { _specifiers = [[self loadSpecifiersFromPlistName:@"prefbundle" target:self] retain]; } return _specifiers; } -(void)respring { system("killall -9 SpringBoard"); } -(void) apply { UIAlertView *alert1 = [[uIAlertView alloc]initWithTitle:@"NoSettingsSearch!" message:@"Made by Sunny Patel" delegate:self cancelButtonTitle:@"Thanks" otherButtonTitles:nil]; [alert1 show]; } -(void) link { [[uIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/StarSunSunny]]; } @end // vim:ft=objc
  13. Did he fix it for me? I thought he just reposted what I said
  14. You're online, why aren't you helping me?
  15. I made sure already it's not the problem please help
  16. Tweak.xm: #define PLIST_PATH @"/var/mobile/Library/Preferences/NoSettingsSearch.plist" inline bool GetPrefBool(NSString *key) { return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue]; } %hook PSSearchController -(id)searchBar { if(GetPrefBool(@"kNoSettingsSearch")) { return NULL; } return %orig; } %end .Plist from Prefbundle: <?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>entry</key> <dict> <key>cell</key> <string>PSLinkCell</string> <key>icon</key> <string>icon.png</string> <key>label</key> <string>NoSettingsSearch</string> </dict> <key>items</key> <array> <dict> <key>cell</key> <string>PSGroupCell</string> <key>label</key> <string>On or Off</string> </dict> <dict> <key>cell</key> <string>PSSwitchCell</string> <key>default</key> <false/> <key>defaults</key> <string>NoSettingsSearch</string> <key>key</key> <string>kSettingsSearch</string> <key>label</key> <string>Search (On or Off)</string> </dict> <dict> <key>cell</key> <string>PSGroupCell</string> <key>label</key> <string>Tweak by Sunny Patel only for Use!</string> </dict> <dict> <key>cell</key> <string>PSTextCell</string> <key>label</key> <string>Visit http://youtube.com/StarSunSunny for more!</string> </dict> </array> <key>title</key> <string>NoSettingsSearch</string> </dict> <dict> <key>cell</key> <string>PSButtonCell</string> <key>label</key> <string>Respring</string> <key>action</key> <string>respring</string> </dict> <dict> <key>cell</key> <string>PSButtonCell</string> <key>action</key> <string>apply</string> <key>label</key> <string>Thanks</string> </dict> <dict> <key>action</key> <string>link</string> <key>cell</key> <string>PSButtonCell</string> <key>label</key> <string>Subscribe to My Channel!</string> </dict> </plist>
  17. I created my tweak and prefbundle according to https://iosgods.com/topic/444-tutorial-how-to-make-a-preference-bundle/ My preference bundle doesn't appear in settings app after I respring and it's not there. Please help and I'll give you what you need to look at. I changed whatever it said to change in the files, and I included the recommended form of the asking something for prefbundle I also included respring button, and ui alert properly according to the tut
  18. Ok thanks but I know void and int, double, floats... So I just need to learn loops and objC
  19. @@shmoo @@DiDA @@Amuyea @@Crypto How did you all learn objective c and c++? Please tell me so I can learn, I look up to you guys. Please help me out.
×
  • 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