From 9e778411267be7e34aed96f4ea74e403299b2d45 Mon Sep 17 00:00:00 2001 From: Maksim Belov Date: Tue, 16 Jul 2024 18:26:45 +0300 Subject: [PATCH] Fix[jreutils]: Purge freetype arguments --- .../src/main/java/net/kdt/pojavlaunch/utils/JREUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/utils/JREUtils.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/utils/JREUtils.java index 9ad4310b7a..18f15590ed 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/utils/JREUtils.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/utils/JREUtils.java @@ -293,6 +293,8 @@ public static void launchJavaVM(final AppCompatActivity activity, final Runtime purgeArg(userArgs, "-XX:+UseLargePagesInMetaspace"); purgeArg(userArgs, "-XX:+UseLargePages"); purgeArg(userArgs, "-Dorg.lwjgl.opengl.libname"); + // Don't let the user specify a custom Freetype library (as the user is unlikely to specify a version compiled for Android) + purgeArg(userArgs, "-Dorg.lwjgl.freetype.libname"); //Add automatically generated args userArgs.add("-Xms" + LauncherPreferences.PREF_RAM_ALLOCATION + "M");