Move uYou patches to uYouPlusPatches.xm
This commit is contained in:
@@ -310,15 +310,6 @@ NSBundle *tweakBundle = uYouPlusBundle();
|
|||||||
if (IS_ENABLED(@"iPhoneLayout_enabled") && (UIDevice.currentDevice.userInterfaceIdiom == UIUserInterfaceIdiomPad)) {
|
if (IS_ENABLED(@"iPhoneLayout_enabled") && (UIDevice.currentDevice.userInterfaceIdiom == UIUserInterfaceIdiomPad)) {
|
||||||
%init(giPhoneLayout);
|
%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
|
// Change the default value of some options
|
||||||
NSArray *allKeys = [[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] allKeys];
|
NSArray *allKeys = [[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] allKeys];
|
||||||
|
|||||||
@@ -183,4 +183,15 @@ BOOL isYTPlaybackActive = NO;
|
|||||||
if (@available(iOS 16, *)) {
|
if (@available(iOS 16, *)) {
|
||||||
%init(iOS16);
|
%init(iOS16);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Disable broken options
|
||||||
|
|
||||||
|
// Disable uYou's auto updates
|
||||||
|
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"automaticallyCheckForUpdates"];
|
||||||
|
|
||||||
|
// Disable uYou's welcome screen (fix #1147)
|
||||||
|
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"showedWelcomeVC"];
|
||||||
|
|
||||||
|
// Disable uYou's disable age restriction
|
||||||
|
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"disableAgeRestriction"];
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user