(Android) Add auto-load state option

This commit is contained in:
twinaphex 2013-01-24 20:28:22 +01:00
parent 6f8190ea0b
commit ce79b33fee
2 changed files with 7 additions and 1 deletions

View File

@ -39,10 +39,15 @@
</PreferenceScreen>
<PreferenceScreen android:title="System Settings" >
<PreferenceCategory android:title="General" >
<CheckBoxPreference
android:defaultValue="false"
android:key="savestate_auto_load"
android:summary="Loads an automatically created savestate at startup."
android:title="Auto load state" />
<CheckBoxPreference
android:defaultValue="false"
android:key="savestate_auto_save"
android:summary="Automatically saves and restores game state."
android:summary="Automatically saves state when exiting game."
android:title="Auto save state" />
</PreferenceCategory>
<PreferenceCategory android:title="Rewinding" >

View File

@ -214,6 +214,7 @@ public class RetroArch extends Activity implements
config.setBoolean("audio_enable", prefs.getBoolean("audio_enable", true));
config.setBoolean("video_smooth", prefs.getBoolean("video_smooth", true));
config.setBoolean("video_allow_rotate", prefs.getBoolean("video_allow_rotate", true));
config.setBoolean("savestate_auto_load", prefs.getBoolean("savestate_auto_load", false));
config.setBoolean("savestate_auto_save", prefs.getBoolean("savestate_auto_save", false));
config.setBoolean("rewind_enable", prefs.getBoolean("rewind_enable", false));
config.setBoolean("video_vsync", prefs.getBoolean("video_vsync", true));