Android: Add memory card mode settings

This commit is contained in:
Connor McLaughlin 2020-07-30 02:00:39 +10:00
parent 5634e821c5
commit d406c03ba9
2 changed files with 29 additions and 0 deletions

View file

@ -75,4 +75,16 @@
<item>DigitalController</item>
<item>AnalogController</item>
</string-array>
<string-array name="settings_memory_card_mode_entries">
<item>No Memory Card</item>
<item>Shared Between All Games</item>
<item>Separate Card Per Game (Game Code)</item>
<item>Separate Card Per Game (Game Title)</item>
</string-array>
<string-array name="settings_memory_card_mode_values">
<item>None</item>
<item>Shared</item>
<item>PerGame</item>
<item>PerGameTitle</item>
</string-array>
</resources>

View file

@ -156,5 +156,22 @@
app:title="Display Touchscreen Controller"
app:defaultValue="true" />
</PreferenceCategory>
<PreferenceCategory app:title="Memory Cards">
<ListPreference
app:key="MemoryCards/Card1Type"
app:title="Memory Card 1 Type"
app:entries="@array/settings_memory_card_mode_entries"
app:entryValues="@array/settings_memory_card_mode_values"
app:defaultValue="PerGameTitle"
app:useSimpleSummaryProvider="true" />
<ListPreference
app:key="MemoryCards/Card2Type"
app:title="Memory Card 2 Type"
app:entries="@array/settings_memory_card_mode_entries"
app:entryValues="@array/settings_memory_card_mode_values"
app:defaultValue="None"
app:useSimpleSummaryProvider="true" />
</PreferenceCategory>
</PreferenceScreen>