Move uYou patches to uYouPlusPatches.xm

This commit is contained in:
Foxster
2024-01-20 15:10:23 -08:00
parent 5d9cffb5e5
commit 812ce52051
2 changed files with 11 additions and 9 deletions
-9
View File
@@ -310,15 +310,6 @@ NSBundle *tweakBundle = uYouPlusBundle();
if (IS_ENABLED(@"iPhoneLayout_enabled") && (UIDevice.currentDevice.userInterfaceIdiom == UIUserInterfaceIdiomPad)) {
%init(giPhoneLayout);
}
// Disable updates
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"automaticallyCheckForUpdates"];
// Don't show uYou's welcome screen cuz it's currently broken (fix #1147)
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"showedWelcomeVC"];
// Disable broken options of uYou
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"disableAgeRestriction"];
// Change the default value of some options
NSArray *allKeys = [[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] allKeys];