Fix FLEX (YTLitePlus.xm)

This commit is contained in:
aricloverGitHub (INACTIVE) 2024-11-09 21:26:55 -06:00 committed by GitHub
parent f855d02462
commit 2600ee6ff6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,17 +40,15 @@ static NSString *accessGroupID() {
- (BOOL)application:(UIApplication *)application - (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> *)launchOptions { didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> *)launchOptions {
BOOL didFinishLaunching = %orig; BOOL didFinishLaunching = %orig;
if (IsEnabled(@"flex_enabled")) {
if (IsEnabled(@"flex_enabled")) { [[%c(FLEXManager) performSelector:@selector(sharedManager)] performSelector:@selector(showExplorer)];
[[FLEXManager sharedManager] showExplorer];
} }
return didFinishLaunching; return didFinishLaunching;
} }
- (void)appWillResignActive:(id)arg1 { - (void)appWillResignActive:(id)arg1 {
%orig; %orig;
if (IsEnabled(@"flex_enabled")) { if (IsEnabled(@"flex_enabled")) {
[[FLEXManager sharedManager] showExplorer]; [[%c(FLEXManager) performSelector:@selector(sharedManager)] performSelector:@selector(showExplorer)];
} }
} }
%end %end