mirror of
https://github.com/Burrit0z/kai
synced 2025-07-03 13:26:48 +00:00
that stuff
This commit is contained in:
14
Kai.xm
14
Kai.xm
@ -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!!
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user