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

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