The source code for the tweak that automatically solves your OCD!
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

42 lines
2.6KB

  1. #line 1 "AlphabetFolders.x"
  2. #include <substrate.h>
  3. #if defined(__clang__)
  4. #if __has_feature(objc_arc)
  5. #define _LOGOS_SELF_TYPE_NORMAL __unsafe_unretained
  6. #define _LOGOS_SELF_TYPE_INIT __attribute__((ns_consumed))
  7. #define _LOGOS_SELF_CONST const
  8. #define _LOGOS_RETURN_RETAINED __attribute__((ns_returns_retained))
  9. #else
  10. #define _LOGOS_SELF_TYPE_NORMAL
  11. #define _LOGOS_SELF_TYPE_INIT
  12. #define _LOGOS_SELF_CONST
  13. #define _LOGOS_RETURN_RETAINED
  14. #endif
  15. #else
  16. #define _LOGOS_SELF_TYPE_NORMAL
  17. #define _LOGOS_SELF_TYPE_INIT
  18. #define _LOGOS_SELF_CONST
  19. #define _LOGOS_RETURN_RETAINED
  20. #endif
  21. @class SBFolderSettings; @class SBHFolderSettings;
  22. static void (*_logos_orig$_ungrouped$SBHFolderSettings$setSortsIconsAlphabetically$)(_LOGOS_SELF_TYPE_NORMAL SBHFolderSettings* _LOGOS_SELF_CONST, SEL, BOOL); static void _logos_method$_ungrouped$SBHFolderSettings$setSortsIconsAlphabetically$(_LOGOS_SELF_TYPE_NORMAL SBHFolderSettings* _LOGOS_SELF_CONST, SEL, BOOL); static void (*_logos_orig$_ungrouped$SBFolderSettings$setSortsIconsAlphabetically$)(_LOGOS_SELF_TYPE_NORMAL SBFolderSettings* _LOGOS_SELF_CONST, SEL, BOOL); static void _logos_method$_ungrouped$SBFolderSettings$setSortsIconsAlphabetically$(_LOGOS_SELF_TYPE_NORMAL SBFolderSettings* _LOGOS_SELF_CONST, SEL, BOOL);
  23. #line 2 "AlphabetFolders.x"
  24. static void _logos_method$_ungrouped$SBHFolderSettings$setSortsIconsAlphabetically$(_LOGOS_SELF_TYPE_NORMAL SBHFolderSettings* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1) {
  25. _logos_orig$_ungrouped$SBHFolderSettings$setSortsIconsAlphabetically$(self, _cmd, YES);
  26. }
  27. static void _logos_method$_ungrouped$SBFolderSettings$setSortsIconsAlphabetically$(_LOGOS_SELF_TYPE_NORMAL SBFolderSettings* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1) {
  28. _logos_orig$_ungrouped$SBFolderSettings$setSortsIconsAlphabetically$(self, _cmd, YES);
  29. }
  30. static __attribute__((constructor)) void _logosLocalInit() {
  31. {Class _logos_class$_ungrouped$SBHFolderSettings = objc_getClass("SBHFolderSettings"); MSHookMessageEx(_logos_class$_ungrouped$SBHFolderSettings, @selector(setSortsIconsAlphabetically:), (IMP)&_logos_method$_ungrouped$SBHFolderSettings$setSortsIconsAlphabetically$, (IMP*)&_logos_orig$_ungrouped$SBHFolderSettings$setSortsIconsAlphabetically$);Class _logos_class$_ungrouped$SBFolderSettings = objc_getClass("SBFolderSettings"); MSHookMessageEx(_logos_class$_ungrouped$SBFolderSettings, @selector(setSortsIconsAlphabetically:), (IMP)&_logos_method$_ungrouped$SBFolderSettings$setSortsIconsAlphabetically$, (IMP*)&_logos_orig$_ungrouped$SBFolderSettings$setSortsIconsAlphabetically$);} }
  32. #line 13 "AlphabetFolders.x"