The source code for AudioMessageBeGone, duh.
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.

Tweak.x.m 3.6KB

il y a 4 ans
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #line 1 "Tweak.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 CKAudioRecorder; @class CKMessageEntryAudioHintView; @class CKRecordActionMenuItem;
  22. static void (*_logos_orig$_ungrouped$CKAudioRecorder$setCancelled$)(_LOGOS_SELF_TYPE_NORMAL CKAudioRecorder* _LOGOS_SELF_CONST, SEL, BOOL); static void _logos_method$_ungrouped$CKAudioRecorder$setCancelled$(_LOGOS_SELF_TYPE_NORMAL CKAudioRecorder* _LOGOS_SELF_CONST, SEL, BOOL); static void (*_logos_orig$_ungrouped$CKRecordActionMenuItem$setSelected$animated$)(_LOGOS_SELF_TYPE_NORMAL CKRecordActionMenuItem* _LOGOS_SELF_CONST, SEL, BOOL, BOOL); static void _logos_method$_ungrouped$CKRecordActionMenuItem$setSelected$animated$(_LOGOS_SELF_TYPE_NORMAL CKRecordActionMenuItem* _LOGOS_SELF_CONST, SEL, BOOL, BOOL); static void (*_logos_orig$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$)(_LOGOS_SELF_TYPE_NORMAL CKMessageEntryAudioHintView* _LOGOS_SELF_CONST, SEL, BOOL, BOOL, id); static void _logos_method$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$(_LOGOS_SELF_TYPE_NORMAL CKMessageEntryAudioHintView* _LOGOS_SELF_CONST, SEL, BOOL, BOOL, id);
  23. #line 1 "Tweak.x"
  24. static void _logos_method$_ungrouped$CKAudioRecorder$setCancelled$(_LOGOS_SELF_TYPE_NORMAL CKAudioRecorder* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1) {
  25. _logos_orig$_ungrouped$CKAudioRecorder$setCancelled$(self, _cmd, YES);
  26. }
  27. static void _logos_method$_ungrouped$CKRecordActionMenuItem$setSelected$animated$(_LOGOS_SELF_TYPE_NORMAL CKRecordActionMenuItem* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1, BOOL arg2) {
  28. _logos_orig$_ungrouped$CKRecordActionMenuItem$setSelected$animated$(self, _cmd, NO,NO);
  29. }
  30. static void _logos_method$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$(_LOGOS_SELF_TYPE_NORMAL CKMessageEntryAudioHintView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1, BOOL arg2, id arg3) {
  31. _logos_orig$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$(self, _cmd, YES,NO,NULL);
  32. }
  33. static __attribute__((constructor)) void _logosLocalInit() {
  34. {Class _logos_class$_ungrouped$CKAudioRecorder = objc_getClass("CKAudioRecorder"); MSHookMessageEx(_logos_class$_ungrouped$CKAudioRecorder, @selector(setCancelled:), (IMP)&_logos_method$_ungrouped$CKAudioRecorder$setCancelled$, (IMP*)&_logos_orig$_ungrouped$CKAudioRecorder$setCancelled$);Class _logos_class$_ungrouped$CKRecordActionMenuItem = objc_getClass("CKRecordActionMenuItem"); MSHookMessageEx(_logos_class$_ungrouped$CKRecordActionMenuItem, @selector(setSelected:animated:), (IMP)&_logos_method$_ungrouped$CKRecordActionMenuItem$setSelected$animated$, (IMP*)&_logos_orig$_ungrouped$CKRecordActionMenuItem$setSelected$animated$);Class _logos_class$_ungrouped$CKMessageEntryAudioHintView = objc_getClass("CKMessageEntryAudioHintView"); MSHookMessageEx(_logos_class$_ungrouped$CKMessageEntryAudioHintView, @selector(setHidden:animated:completion:), (IMP)&_logos_method$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$, (IMP*)&_logos_orig$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$);} }
  35. #line 18 "Tweak.x"