Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ public static void launchJavaVM(final AppCompatActivity activity, final Runtime
purgeArg(userArgs, "-Dorg.lwjgl.freetype.libname");
// Overridden by us to specify the exact number of cores that the android system has
purgeArg(userArgs, "-XX:ActiveProcessorCount");
purgeArg(userArgs,"-Dsodium.checks.issue2561=false");

//Add automatically generated args
userArgs.add("-Xms" + LauncherPreferences.PREF_RAM_ALLOCATION + "M");
Expand All @@ -314,6 +315,9 @@ public static void launchJavaVM(final AppCompatActivity activity, final Runtime
// Some phones are not using the right number of cores, fix that
userArgs.add("-XX:ActiveProcessorCount=" + java.lang.Runtime.getRuntime().availableProcessors());

// This will disable Sodium's LWJGL version checker
userArgs.add("-Dsodium.checks.issue2561=false");

userArgs.addAll(JVMArgs);
activity.runOnUiThread(() -> Toast.makeText(activity, activity.getString(R.string.autoram_info_msg,LauncherPreferences.PREF_RAM_ALLOCATION), Toast.LENGTH_SHORT).show());
System.out.println(JVMArgs);
Expand Down
Loading