Enable overlays by default.

This commit is contained in:
Themaister 2013-01-04 23:05:51 +01:00
parent 7c841c18b3
commit f8b86b56dd
2 changed files with 8 additions and 4 deletions

View File

@ -43,7 +43,7 @@
</PreferenceCategory>
<PreferenceCategory android:title="Overlay" >
<CheckBoxPreference
android:defaultValue="false"
android:defaultValue="true"
android:key="input_overlay_enable"
android:title="Enable" />

View File

@ -234,9 +234,13 @@ public class RetroArch extends Activity implements
config.setString("video_fbo_scale_x", prefs.getString("video_fbo_scale", "2.0"));
config.setString("video_fbo_scale_y", prefs.getString("video_fbo_scale", "2.0"));
config.setString("input_overlay",
prefs.getBoolean("input_overlay_enable", false) ?
prefs.getString("input_overlay", "") : "");
boolean useOverlay = prefs.getBoolean("input_overlay_enable", true);
if (useOverlay) {
String overlayPath = prefs.getString("input_overlay", getCacheDir() + "/Overlays/basic_overlay.cfg");
config.setString("input_overlay", overlayPath);
} else {
config.setString("input_overlay", "");
}
String confPath = getDefaultConfigPath();
try {