mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +00:00
(Android/Shield) Improve device detection/autoconfiguration - refresh rate still not
set correctly I think
This commit is contained in:
parent
66b4510237
commit
8dc60fc3d5
@ -303,11 +303,17 @@ public class RetroArch extends Activity implements
|
||||
.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext());
|
||||
prefs.edit().putBoolean("video_threaded", true).commit();
|
||||
prefs.edit().putBoolean("input_autodetect_enable", true).commit();
|
||||
prefs.edit().putBoolean("input_overlay_enable", false).commit();
|
||||
prefs.edit().putFloat("refresh_rate", Float.parseFloat("59.6")).commit();
|
||||
config.setBoolean("video_threaded", true);
|
||||
config.setBoolean("input_autodetect_enable", true);
|
||||
config.setBoolean("input_overlay_enable", false);
|
||||
config.setDouble("video_refresh_rate", 59.6);
|
||||
|
||||
String confPath = getDefaultConfigPath();
|
||||
try {
|
||||
config.write(new File(confPath));
|
||||
} catch (IOException e) {
|
||||
Log.e(TAG, "Failed to save config file to: " + confPath);
|
||||
}
|
||||
}
|
||||
})
|
||||
.setNegativeButton("No", null);
|
||||
|
Loading…
x
Reference in New Issue
Block a user