Skip to content

Commit 4f175fc

Browse files
committed
Fix: force old design, lc detection, update gson, game mode, save token
Add UIDesignRequiresCompatibility because the current design is completely broken on iOS 26 Add GCSupportsGameMode to Info.plist Remove redundant call to -[MicrosoftAuthenticator saveChanges] Update LiveContainer detection to work with current version Update gson library for 1.21.6+, still need to update renderer
1 parent cc1d97d commit 4f175fc

5 files changed

Lines changed: 25 additions & 17 deletions

File tree

-277 KB
Binary file not shown.
280 KB
Binary file not shown.

Natives/Info.plist

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616
<dict>
1717
<key>CFBundleAlternateIcons</key>
1818
<dict>
19-
<key>AppIcon-Development</key>
19+
<key>AppIcon-Dark</key>
2020
<dict>
2121
<key>CFBundleIconFiles</key>
2222
<array>
23-
<string>AppIcon-Development60x60</string>
23+
<string>AppIcon-Dark60x60</string>
2424
</array>
2525
</dict>
26-
<key>AppIcon-Dark</key>
26+
<key>AppIcon-Development</key>
2727
<dict>
2828
<key>CFBundleIconFiles</key>
2929
<array>
30-
<string>AppIcon-Dark60x60</string>
30+
<string>AppIcon-Development60x60</string>
3131
</array>
3232
</dict>
3333
</dict>
@@ -98,17 +98,19 @@
9898
</array>
9999
<key>CFBundleVersion</key>
100100
<string>1.0</string>
101-
<key>GCSupportsControllerUserInteraction</key>
102-
<true/>
103-
<key>UILaunchStoryboardName</key>
104-
<string>LaunchScreen</string>
105101
<key>GCSupportedGameControllers</key>
106102
<array>
107103
<dict>
108104
<key>ProfileName</key>
109105
<string>ExtendedGamepad</string>
110106
</dict>
111107
</array>
108+
<key>GCSupportsControllerUserInteraction</key>
109+
<true/>
110+
<key>GCSupportsGameMode</key>
111+
<true/>
112+
<key>LSApplicationCategoryType</key>
113+
<string>public.app-category.games</string>
112114
<key>LSApplicationQueriesSchemes</key>
113115
<array>
114116
<string>filza</string>
@@ -161,6 +163,8 @@
161163
<array>
162164
<string>fetch</string>
163165
</array>
166+
<key>UIDesignRequiresCompatibility</key>
167+
<true/>
164168
<key>UIDeviceFamily</key>
165169
<array>
166170
<integer>1</integer>
@@ -169,6 +173,8 @@
169173
</array>
170174
<key>UIFileSharingEnabled</key>
171175
<true/>
176+
<key>UILaunchStoryboardName</key>
177+
<string>LaunchScreen</string>
172178
<key>UIRequiredDeviceCapabilities</key>
173179
<array>
174180
<string>arm64</string>
@@ -189,11 +195,11 @@
189195
<string>UIInterfaceOrientationLandscapeLeft</string>
190196
<string>UIInterfaceOrientationLandscapeRight</string>
191197
</array>
192-
<key>UIWhitePointAdaptivityStyle</key>
193-
<string>UIWhitePointAdaptivityStyleGame</string>
194-
<key>UIViewControllerBasedStatusBarAppearance</key>
195-
<true/>
196198
<key>UISupportsDocumentBrowser</key>
197199
<true/>
200+
<key>UIViewControllerBasedStatusBarAppearance</key>
201+
<true/>
202+
<key>UIWhitePointAdaptivityStyle</key>
203+
<string>UIWhitePointAdaptivityStyleGame</string>
198204
</dict>
199205
</plist>

Natives/JavaLauncher.m

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,15 @@ void init_loadCustomJvmFlags(int* argc, const char** argv) {
100100
int launchJVM(NSString *username, id launchTarget, int width, int height, int minVersion) {
101101
NSLog(@"[JavaLauncher] Beginning JVM launch");
102102

103-
if (NSBundle.mainBundle.infoDictionary[@"LCDataUUID"]) {
103+
if ([NSFileManager.defaultManager fileExistsAtPath:[NSBundle.mainBundle.bundlePath stringByAppendingPathComponent:@"LCAppInfo.plist"]]) {
104104
NSDebugLog(@"[JavaLauncher] Running in LiveContainer, skipping dyld patch");
105105
} else {
106-
// Activate Library Validation bypass for external runtime and dylibs (JNA, etc)
107-
init_bypassDyldLibValidation();
106+
if(@available(iOS 19.0, *)) {
107+
// Disable Library Validation bypass for iOS 26 because of stricter JIT
108+
} else {
109+
// Activate Library Validation bypass for external runtime and dylibs (JNA, etc)
110+
init_bypassDyldLibValidation();
111+
}
108112
}
109113

110114

Natives/authenticator/MicrosoftAuthenticator.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,6 @@ - (void)refreshTokenWithCallback:(Callback)callback {
222222
return;
223223
}
224224

225-
[self saveChanges];
226-
227225
if ([NSDate.date timeIntervalSince1970] > [self.authData[@"expiresAt"] longValue]) {
228226
[self acquireAccessToken:self.tokenData[@"refreshToken"] refresh:YES callback:callback];
229227
} else {

0 commit comments

Comments
 (0)