Various fixes and enhancements

- Change setNeedsUpdateOfPrefersPointerLocked logic to hopefully fix
issues with mouse not recognizing on iPhones
- Change reloadVersionList logic to load Installed version list
instantly at startup
- Enable game's CALayer opaque and drawsAsynchronously to improve
rendering performance
- Handle natives_directory variable for legacy modded versions
- Set LD_LIBRARY_PATH to silent Caciocavallo NPE error in locating
Android-only code
- Tapping Play when no version selected will now bring up the version
picker instead of doing nothing
This commit is contained in:
Duy Tran Khanh committed 2023-01-13 20:11:50 +07:00
1 parent 61929eb9ad
commit 652316e8f6
6 files changed
+55 -37

No files matched your search

@@ -71,7 +71,7 @@ public final class Tools
public static final String CTRLMAP_PATH = DIR_GAME_NEW + "/controlmap";
public static final String CTRLDEF_FILE = DIR_GAME_NEW + "/controlmap/default.json";
public static final String LIBNAME_OPTIFINE = "optifine:OptiFine";
public static final String NATIVE_LIB_DIR = DIR_BUNDLE + "/Frameworks";
volatile public static int mGLFWWindowWidth, mGLFWWindowHeight;
@@ -172,6 +172,7 @@ public final class Tools
varArgMap.put("user_type", "msa");
varArgMap.put("version_name", versionName);
varArgMap.put("version_type", versionInfo.type);
varArgMap.put("natives_directory", Tools.NATIVE_LIB_DIR);
List<String> minecraftArgs = new ArrayList<String>();
if (versionInfo.arguments != null) {