mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 08:35:37 -04:00
A little fix
This commit is contained in:
parent
7adc09906e
commit
ede68c6d0c
@ -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;
|
||||
|
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user