Guest User

Untitled

a guest
Jun 21st, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. /* SBTweak-SleepToLock.mm */
  2. #include <substrate.h>
  3.  
  4. @class SBAwayController;
  5.  
  6. @protocol SBTweak
  7. - (void) sbtwk_frontLocked:(BOOL)sleepDisplay animate:(BOOL)animate automatically:(BOOL)automatically;
  8. @end
  9.  
  10. static void SBAwayController_frontLocked_animate_automatically_(SBAwayController<SBTweak> *self, SEL selector, BOOL sleepDisplay, BOOL animate, BOOL automatically)
  11. {
  12. [self sbtwk_frontLocked:NO animate:YES automatically:automatically];
  13. }
  14.  
  15. extern "C" void SBTweak_Init()
  16. {
  17. MSHookMessage(objc_getClass("SBAwayController"), @selector(frontLocked:animate:automatically:), (IMP) &SBAwayController_frontLocked_animate_automatically_, "sbtwk_");
  18. }
Add Comment
Please, Sign In to add comment