LauncherPrefs: Fix incorrect fsr1 setting

This commit is contained in:
alexytomi
2025-10-02 21:26:17 +08:00
parent 36723b8fe9
commit 1cb8eeff21

View File

@@ -236,7 +236,7 @@ public class LauncherPreferences {
// Using .getInt() leads to a class cast exception and using integer-arrays will just crash the layout/fragment.
MGConfigJson.put("enableANGLE", Integer.parseInt(DEFAULT_PREF.getString("mg_renderer_setting_angle", "0")));
MGConfigJson.put("enableNoError", Integer.parseInt(DEFAULT_PREF.getString("mg_renderer_setting_errorSetting", "0")));
MGConfigJson.put("enableFSR", Integer.parseInt(DEFAULT_PREF.getString("mg_renderer_setting_fsr", "0")));
MGConfigJson.put("fsr1Setting", Integer.parseInt(DEFAULT_PREF.getString("mg_renderer_setting_fsr", "0")));
// These guys are SwitchPreferences so they get special treatment, they need to be converted to ints
int gl43exts = DEFAULT_PREF.getBoolean("mg_renderer_setting_gl43ext", false) ? 1 : 0;