mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-12 20:58:18 +00:00
[Android] Add rewinding granularity to the general settings.
This commit is contained in:
parent
fb5c2d5f34
commit
801af3be81
@ -171,6 +171,8 @@
|
||||
<string name="auto_save_state_desc">Automatically saves state (*.state.auto) when exiting game.</string>
|
||||
<string name="rewinding">Rewinding</string>
|
||||
<string name="rewinding_desc">Enable real-time rewinding of gameplay. (WARNING: Very CPU intensive - will decrease ingame performance by a lot - only use this option on a powerful device).</string>
|
||||
<string name="rewind_granularity">Rewind Granularity</string>
|
||||
<string name="rewind_granularity_desc">Number of frames to rewind at a time.</string>
|
||||
|
||||
<!-- Video Settings -->
|
||||
<string name="video_options">Video</string>
|
||||
|
@ -41,5 +41,11 @@
|
||||
android:key="rewind_enable"
|
||||
android:summary="@string/rewinding_desc"
|
||||
android:title="@string/enable" />
|
||||
<EditTextPreference
|
||||
android:dependency="rewind_enable"
|
||||
android:key="rewind_granularity"
|
||||
android:numeric="integer"
|
||||
android:summary="@string/rewind_granularity_desc"
|
||||
android:title="@string/rewind_granularity"/>
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
@ -110,6 +110,7 @@ public final class UserPreferences
|
||||
|
||||
// General Settings
|
||||
readbackBool(config, edit, "rewind_enable");
|
||||
readbackString(config, edit, "rewind_granularity");
|
||||
readbackBool(config, edit, "savestate_auto_load");
|
||||
readbackBool(config, edit, "savestate_auto_save");
|
||||
|
||||
@ -202,6 +203,7 @@ public final class UserPreferences
|
||||
config.setBoolean("savestate_auto_load", prefs.getBoolean("savestate_auto_load", true));
|
||||
config.setBoolean("savestate_auto_save", prefs.getBoolean("savestate_auto_save", false));
|
||||
config.setBoolean("rewind_enable", prefs.getBoolean("rewind_enable", false));
|
||||
config.setInt("rewind_granularity", Integer.parseInt(prefs.getString("rewind_granularity", "1")));
|
||||
config.setBoolean("video_vsync", prefs.getBoolean("video_vsync", true));
|
||||
config.setBoolean("input_autodetect_enable", prefs.getBoolean("input_autodetect_enable", true));
|
||||
config.setBoolean("input_debug_enable", prefs.getBoolean("input_debug_enable", false));
|
||||
|
Loading…
x
Reference in New Issue
Block a user