(Android) Add rewind and auto rotate options to settings

This commit is contained in:
twinaphex 2013-01-02 04:54:08 +01:00
parent ecd614c9ec
commit 55376dc2b5
2 changed files with 13 additions and 1 deletions

View File

@ -8,6 +8,11 @@
android:key="savestate_auto_save"
android:summary="Automatically saves and restores game state"
android:title="Auto save state" />
<CheckBoxPreference
android:defaultValue="false"
android:key="rewind_enable"
android:summary="Rewind a game in real-time (WARNING - very CPU intensive)."
android:title="Rewind" />
</PreferenceScreen>
<PreferenceScreen android:title="Video Config" >
@ -16,6 +21,11 @@
android:key="video_smooth"
android:summary="Applies bilinear filter, smooths out edges"
android:title="Bilinear filter" />
<CheckBoxPreference
android:defaultValue="true"
android:key="video_allow_rotate"
android:summary="Will auto-rotate the screen for vertically oriented games."
android:title="Auto-rotate" />
<ListPreference
android:entryValues="@array/aspect_values"
@ -39,4 +49,4 @@
android:title="Dynamic Rate Control" />
</PreferenceScreen>
</PreferenceScreen>
</PreferenceScreen>

View File

@ -136,7 +136,9 @@ public class ModuleActivity extends Activity implements
config.setBoolean("audio_rate_control", prefs.getBoolean("audio_rate_control", true));
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_save", prefs.getBoolean("savestate_auto_save", false));
config.setBoolean("rewind_enable", prefs.getBoolean("rewind_enable", false));
String aspect = prefs.getString("video_aspect_ratio", "auto");
if (aspect.equals("full")) {