A little fix

This commit is contained in:
khanhduytran0 2021-03-06 14:43:22 +07:00
parent 7adc09906e
commit ede68c6d0c
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ import net.kdt.pojavlaunch.*;
public class LauncherPreferences
{
public static SharedPreferences DEFAULT_PREF;
public static int PREF_RENDERER = 2;
public static String PREF_RENDERER = "2";
public static boolean PREF_VERTYPE_RELEASE = true;
public static boolean PREF_VERTYPE_SNAPSHOT = false;
public static boolean PREF_VERTYPE_OLDALPHA = false;
@ -29,7 +29,7 @@ public class LauncherPreferences
public static boolean PREF_DISABLE_GESTURES = false;
public static float PREF_MOUSESPEED = 1f;
public static void loadPreferences() {
PREF_RENDERER = DEFAULT_PREF.getInt("renderer", 2);
PREF_RENDERER = DEFAULT_PREF.getString("renderer", "2");
PREF_BUTTONSIZE = DEFAULT_PREF.getInt("buttonscale", 100);
PREF_MOUSESCALE = DEFAULT_PREF.getInt("mousescale", 100);
PREF_MOUSESPEED = ((float)DEFAULT_PREF.getInt("mousespeed",100))/100f;

View File

@ -253,7 +253,7 @@ public class JREUtils
//fallback to 2 since it's the minimum for the entire app
envMap.put("LIBGL_ES","2");
} else {
envMap.put("LIBGL_ES", Integer.toString(LauncherPreferences.PREF_RENDERER));
envMap.put("LIBGL_ES", LauncherPreferences.PREF_RENDERER);
}
}
for (Map.Entry<String, String> env : envMap.entrySet()) {