mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 21:26:04 +00:00
Update uYouPlus.xm
This commit is contained in:
parent
f9555d5166
commit
a23a03fc22
1 changed files with 14 additions and 0 deletions
|
|
@ -16,6 +16,20 @@ NSBundle *uYouPlusBundle() {
|
|||
}
|
||||
NSBundle *tweakBundle = uYouPlusBundle();
|
||||
|
||||
// uYouPlusSettings.xm
|
||||
static int contrastMode() {
|
||||
NSString *appVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
|
||||
NSComparisonResult result1 = [appVersion compare:@"17.33.2" options:NSNumericSearch];
|
||||
NSComparisonResult result2 = [appVersion compare:@"17.38.10" options:NSNumericSearch];
|
||||
|
||||
if (result1 != NSOrderedAscending && result2 != NSOrderedDescending) {
|
||||
return [[NSUserDefaults standardUserDefaults] integerForKey:@"lcm"];
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
//
|
||||
|
||||
# pragma mark - Tweaks
|
||||
|
||||
// Activate FLEX
|
||||
|
|
|
|||
Loading…
Reference in a new issue