From aab450a6d3ffe0220376903f5835184b270dffa9 Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Fri, 11 Aug 2023 17:45:06 -0500 Subject: [PATCH] Update Settings.xm --- Settings.xm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Settings.xm b/Settings.xm index ba2ad33..4c65bea 100644 --- a/Settings.xm +++ b/Settings.xm @@ -799,6 +799,16 @@ extern NSBundle *uYouPlusBundle(); # pragma mark - Miscellaneous YTSettingsSectionItem *miscellaneousGroup = [YTSettingsSectionItemClass itemWithTitle:LOC(@"MISCELLANEOUS") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) { NSArray *rows = @[ + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"App Patcher - v16.42.3 Exclusive") + titleDescription:LOC(@"Enabling this Option will change the APIs, Functionality and it will also patch the app into removing the error 400 message for a little longer which is really useful.") + accessibilityIdentifier:nil + switchOn:IsEnabled(@"ytAppPatcher_enabled") + switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"ytAppPatcher_enabled"]; + return YES; + } + settingItemId:0], + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"CAST_CONFIRM") titleDescription:LOC(@"CAST_CONFIRM_DESC") accessibilityIdentifier:nil