Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* SBTweak-SleepToLock.mm */
- #include <substrate.h>
- @class SBAwayController;
- @protocol SBTweak
- - (void) sbtwk_frontLocked:(BOOL)sleepDisplay animate:(BOOL)animate automatically:(BOOL)automatically;
- @end
- static void SBAwayController_frontLocked_animate_automatically_(SBAwayController<SBTweak> *self, SEL selector, BOOL sleepDisplay, BOOL animate, BOOL automatically)
- {
- [self sbtwk_frontLocked:NO animate:YES automatically:automatically];
- }
- extern "C" void SBTweak_Init()
- {
- MSHookMessage(objc_getClass("SBAwayController"), @selector(frontLocked:animate:automatically:), (IMP) &SBAwayController_frontLocked_animate_automatically_, "sbtwk_");
- }
Add Comment
Please, Sign In to add comment