substrate extension to make the app switcher cards square like the non-x iPhones
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

SSXRootListController.m 441B

4 年前
1234567891011121314151617181920
  1. #include "SSXRootListController.h"
  2. @implementation SSXRootListController
  3. - (NSArray *)specifiers {
  4. if (!_specifiers) {
  5. _specifiers = [[self loadSpecifiersFromPlistName:@"Root" target:self] retain];
  6. }
  7. return _specifiers;
  8. }
  9. // Respring function
  10. - (void)respring:(id)sender {
  11. pid_t pid;
  12. const char* args[] = {"killall", "backboardd", NULL};
  13. posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)args, NULL);
  14. }
  15. @end