2.1.1 - Backport warnings fix

This commit is contained in:
Eilionoir Tunnicliff committed 2022-12-18 13:56:54 -05:00
1 parent ec106e234a
commit ef95ab43aa
8 files changed
+30 -28

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ Name: PojavLauncher iOS (Development)
Maintainer: PojavLauncherTeam <https://discord.gg/6RpEJda>
Author: DuyKhanhTran
Architecture: iphoneos-arm
Version: 2.1
Version: 2.1.1
Depends: firmware (>= 12.0), firmware (<< 15.0)
Conflicts: pojavlauncher-dev, pojavlauncher-zink, pojavlauncher, net.kdt.pojavlauncher.release, net.kdt.pojavlauncher.release-rootless, net.kdt.pojavlauncher.development-rootless
Replaces: pojavlauncher-dev, pojavlauncher
+1 -1
View File
@@ -3,7 +3,7 @@ Name: PojavLauncher iOS (Development) Rootless
Maintainer: PojavLauncherTeam <https://discord.gg/6RpEJda>
Author: DuyKhanhTran
Architecture: iphoneos-arm64
Version: 2.1
Version: 2.1.1
Depends: firmware (>= 15.0)
Conflicts: pojavlauncher-dev, pojavlauncher-zink, pojavlauncher, net.kdt.pojavlauncher.release, net.kdt.pojavlauncher.release-rootless, net.kdt.pojavlauncher.development
Replaces: pojavlauncher-dev, pojavlauncher
+1 -1
View File
@@ -3,7 +3,7 @@ Name: PojavLauncher iOS
Maintainer: PojavLauncherTeam <https://discord.gg/6RpEJda>
Author: DuyKhanhTran
Architecture: iphoneos-arm
Version: 2.1
Version: 2.1.1
Depends: firmware (>= 12.0), firmware (<< 15.0)
Conflicts: pojavlauncher-dev, pojavlauncher-zink, pojavlauncher, net.kdt.pojavlauncher.release-rootless, net.kdt.pojavlauncher.development, net.kdt.pojavlauncher.development-rootless
Replaces: pojavlauncher, pojavlauncher-dev
+1 -1
View File
@@ -3,7 +3,7 @@ Name: PojavLauncher iOS Rootless
Maintainer: PojavLauncherTeam <https://discord.gg/6RpEJda>
Author: DuyKhanhTran
Architecture: iphoneos-arm
Version: 2.1
Version: 2.1.1
Depends: firmware (>= 15.0)
Conflicts: pojavlauncher-dev, pojavlauncher-zink, pojavlauncher, net.kdt.pojavlauncher.release, net.kdt.pojavlauncher.development, net.kdt.pojavlauncher.development-rootless
Replaces: pojavlauncher, pojavlauncher-dev
+2 -2
View File
@@ -67,7 +67,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.1</string>
<string>2.1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
@@ -82,7 +82,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>2.1</string>
<string>2.1.1</string>
<key>GCSupportsControllerUserInteraction</key>
<true/>
<key>GCSupportedGameControllers</key>
+24
View File
@@ -1,6 +1,8 @@
#import <SafariServices/SafariServices.h>
#import <WebKit/WebKit.h>
#import "LauncherNewsViewController.h"
#import "LauncherPreferences.h"
#import "utils.h"
@interface LauncherNewsViewController()<WKNavigationDelegate>
@end
@@ -36,6 +38,28 @@ UIEdgeInsets insets;
[webView.scrollView setShowsHorizontalScrollIndicator:NO];
[webView loadRequest:request];
[self.view addSubview:webView];
if(roundf([[NSProcessInfo processInfo] physicalMemory] / 1048576) < 1900 && [getPreference(@"unsupported_warn_counter") intValue] == 0) {
UIAlertController *RAMAlert = [UIAlertController alertControllerWithTitle:localize(@"login.warn.title.a7", nil) message:localize(@"login.warn.message.a7", nil) preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *ok = [UIAlertAction actionWithTitle:localize(@"OK", nil) style:UIAlertActionStyleCancel handler:nil];
[self presentViewController:RAMAlert animated:YES completion:nil];
[RAMAlert addAction:ok];
}
int launchNum = [getPreference(@"unsupported_warn_counter") intValue];
if(launchNum > 0) {
setPreference(@"unsupported_warn_counter", @(launchNum - 1));
} else {
setPreference(@"unsupported_warn_counter", @(30));
}
if(!getenv("POJAV_DETECTEDJB") && [getPreference(@"ram_unjb_warn") boolValue] == YES && [getPreference(@"auto_ram") boolValue] == NO) {
UIAlertController *ramalert = [UIAlertController alertControllerWithTitle:localize(@"login.warn.title.ram_unjb", nil) message:localize(@"login.warn.message.ram_unjb", nil) preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *ok = [UIAlertAction actionWithTitle:localize(@"OK", nil) style:UIAlertActionStyleCancel handler:nil];
[self presentViewController:ramalert animated:YES completion:nil];
[ramalert addAction:ok];
setPreference(@"ram_unjb_warn", @NO);
}
}
-22
View File
@@ -26,28 +26,6 @@ extern NSMutableDictionary *prefDict;
detailVc.toolbarHidden = NO;
self.viewControllers = @[[[UINavigationController alloc] initWithRootViewController:masterVc], detailVc];
if(roundf([[NSProcessInfo processInfo] physicalMemory] / 1048576) < 1900 && [getPreference(@"unsupported_warn_counter") intValue] == 0) {
UIAlertController *RAMAlert = [UIAlertController alertControllerWithTitle:localize(@"login.warn.title.a7", nil) message:localize(@"login.warn.message.a7", nil) preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *ok = [UIAlertAction actionWithTitle:localize(@"OK", nil) style:UIAlertActionStyleCancel handler:nil];
[self presentViewController:RAMAlert animated:YES completion:nil];
[RAMAlert addAction:ok];
}
int launchNum = [getPreference(@"unsupported_warn_counter") intValue];
if(launchNum > 0) {
setPreference(@"unsupported_warn_counter", @(launchNum - 1));
} else {
setPreference(@"unsupported_warn_counter", @(30));
}
if(!getenv("POJAV_DETECTEDJB") && [getPreference(@"ram_unjb_warn") boolValue] == YES && [getPreference(@"auto_ram") boolValue] == NO) {
UIAlertController *ramalert = [UIAlertController alertControllerWithTitle:localize(@"login.warn.title.ram_unjb", nil) message:localize(@"login.warn.message.ram_unjb", nil) preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *ok = [UIAlertAction actionWithTitle:localize(@"OK", nil) style:UIAlertActionStyleCancel handler:nil];
[self presentViewController:ramalert animated:YES completion:nil];
[ramalert addAction:ok];
setPreference(@"ram_unjb_warn", @NO);
}
}
- (void)splitViewController:(UISplitViewController *)svc willChangeToDisplayMode:(UISplitViewControllerDisplayMode)displayMode {
Binary file not shown.