1
0
mirror of https://github.com/Burrit0z/kai synced 2025-07-03 13:26:48 +00:00

that stuff

This commit is contained in:
Burrit0z
2020-05-21 15:57:57 -04:00
parent fb89766171
commit 62a9aecec1
8 changed files with 28 additions and 8 deletions

14
Kai.xm
View File

@ -123,7 +123,7 @@
}
%end
%hook CSCoverSheetViewController
%hook KAICSTarget //Again, not a class
-(void)_transitionChargingViewToVisible:(BOOL)arg1 showBattery:(BOOL)arg2 animated:(BOOL)arg3 {
if(hideChargingAnimation) {
@ -132,6 +132,13 @@
}
}
-(void)_transitionChargingViewToVisible:(BOOL)arg1 showBattery:(BOOL)arg2 animated:(BOOL)arg3 force:(BOOL)arg4 { //might just be ios12
if(hideChargingAnimation) {
//Same idea
%orig(NO,NO,NO,NO);
}
}
%end
%ctor {
@ -147,7 +154,10 @@
//Bro Muirey helped me figure out a logical way to do this because iOS 12-13 classes have changed
Class cls = kCFCoreFoundationVersionNumber > 1600 ? ([objc_getClass("CSAdjunctListView") class]) : ([objc_getClass("SBDashBoardAdjunctListView") class]);
Class CSCls = kCFCoreFoundationVersionNumber > 1600 ? ([objc_getClass("CSCoverSheetViewController") class]) : ([objc_getClass("SBDashBoardViewController") class]);
if(enabled) {
%init(KAITarget = cls);
%init(KAITarget = cls, KAICSTarget = CSCls); //BIG BRAIN BRO!!
}
}