From 8a752c04771b28d82dce988849cad84ddaf3ea2c Mon Sep 17 00:00:00 2001 From: FivePixels Date: Fri, 17 Jul 2020 10:06:30 -0500 Subject: Initial Commit --- finicalprefs/FCLRootListController.m | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 finicalprefs/FCLRootListController.m (limited to 'finicalprefs/FCLRootListController.m') diff --git a/finicalprefs/FCLRootListController.m b/finicalprefs/FCLRootListController.m new file mode 100644 index 0000000..e22d31c --- /dev/null +++ b/finicalprefs/FCLRootListController.m @@ -0,0 +1,30 @@ +#import +#import +@interface FCLRootListController : PSListController +@end +@implementation FCLRootListController + +-(void)respring { + pid_t pid; + const char* args[] = {"sbreload", NULL}; + posix_spawn(&pid, "/usr/bin/sbreload", NULL, NULL, (char* const*)args, NULL); +} +- (NSArray *)specifiers { + if (!_specifiers) { + _specifiers = [self loadSpecifiersFromPlistName:@"Finical" target:self]; + } + return _specifiers; +} +-(void)openDiscord { + [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://discord.gg/Vg2EYDR"] options:@{} completionHandler:nil]; +} +-(void)openTwitterDM { + [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://twitter.com/messages/compose?recipient_id=974524608949903361&text=%28Please+describe+your+issue+here%29"] options:@{} completionHandler:nil]; +} +-(void)openTwitter5px { + [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://twitter.com/o5pxels"] options:@{} completionHandler:nil]; +} +-(void)openPayPal { + [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://paypal.me/fivepixels"] options:@{} completionHandler:nil]; +} +@end -- cgit v1.2.3