From 2600ee6ff67fa0109b508860773d3aced76039a2 Mon Sep 17 00:00:00 2001 From: "aricloverGitHub (INACTIVE)" <78001398+arichornlover@users.noreply.github.com> Date: Sat, 9 Nov 2024 21:26:55 -0600 Subject: [PATCH] Fix FLEX (YTLitePlus.xm) --- YTLitePlus.xm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/YTLitePlus.xm b/YTLitePlus.xm index a27a8bf..9a87fdf 100644 --- a/YTLitePlus.xm +++ b/YTLitePlus.xm @@ -40,17 +40,15 @@ static NSString *accessGroupID() { - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { BOOL didFinishLaunching = %orig; - - if (IsEnabled(@"flex_enabled")) { - [[FLEXManager sharedManager] showExplorer]; + if (IsEnabled(@"flex_enabled")) { + [[%c(FLEXManager) performSelector:@selector(sharedManager)] performSelector:@selector(showExplorer)]; } - return didFinishLaunching; } - (void)appWillResignActive:(id)arg1 { %orig; - if (IsEnabled(@"flex_enabled")) { - [[FLEXManager sharedManager] showExplorer]; + if (IsEnabled(@"flex_enabled")) { + [[%c(FLEXManager) performSelector:@selector(sharedManager)] performSelector:@selector(showExplorer)]; } } %end