From e15d2d1d37b39c0d9c7523b10584c4ec0be38a78 Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Sun, 9 Jul 2023 00:00:24 -0500 Subject: [PATCH] Added another option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This option is required in order for the version spoofer to work 😅 --- Settings.xm | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Settings.xm b/Settings.xm index bf3daba..e9754c7 100644 --- a/Settings.xm +++ b/Settings.xm @@ -875,7 +875,7 @@ extern NSBundle *uYouPlusBundle(); return YES; } settingItemId:0], - + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"ENABLE_FLEX") titleDescription:LOC(@"ENABLE_FLEX_DESC") accessibilityIdentifier:nil @@ -884,8 +884,17 @@ extern NSBundle *uYouPlusBundle(); [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"flex_enabled"]; return YES; } - settingItemId:0] - ]; + settingItemId:0], + + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Enable App Version Spoofer") + titleDescription:LOC(@"APP_VERSION_SPOOFER_DESC") + accessibilityIdentifier:nil + switchOn:IsEnabled(@"enableVersionSpoofer_enabled") + switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"enableVersionSpoofer_enabled"]; + return YES; + } + settingItemId:0], versionSpooferSection]; YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"MISCELLANEOUS") pickerSectionTitle:nil rows:rows selectedItemIndex:NSNotFound parentResponder:[self parentResponder]]; [settingsViewController pushViewController:picker]; return YES;