Android: Replace inline strings with string resource references

This commit is contained in:
Connor McLaughlin
2020-12-08 01:35:13 +10:00
parent 98d6b49987
commit e340963c99
12 changed files with 277 additions and 180 deletions

View File

@ -17,7 +17,7 @@
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
<ListPreference
app:key="CPU/Overclock"
app:title="CPU Overclocking"
app:title="@string/settings_cpu_overclocking"
app:defaultValue="100"
app:entries="@array/settings_advanced_cpu_overclock_entries"
app:entryValues="@array/settings_advanced_cpu_overclock_values"
@ -25,46 +25,46 @@
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:key="CDROM/RegionCheck"
app:title="CD-ROM Region Check"
app:title="@string/settings_cdrom_region_check"
app:defaultValue="false"
app:summary="Prevents discs from incorrect regions being read by the emulator. Usually safe to disable."
app:summary="@string/settings_summary_cdrom_region_check"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:key="CDROM/LoadImageToRAM"
app:title="CD-ROM Preload Image to RAM"
app:title="@string/settings_cdrom_preload_image_to_ram"
app:defaultValue="false"
app:summary="Loads the game image into RAM. Useful for network paths that may become unreliable during gameplay. In some cases also eliminates stutter when games initiate audio track playback."
app:summary="@string/settings_summary_preload_image_to_ram"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:key="GPU/PGXPVertexCache"
app:title="PGXP Vertex Cache"
app:title="@string/settings_pgxp_vertex_cache"
app:defaultValue="false"
app:summary="Uses screen coordinates as a fallback when tracking vertices through memory fails. May improve PGXP compatibility."
app:summary="@string/settings_summary_pgxp_vertex_cache"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:key="GPU/PGXPCPU"
app:title="PGXP CPU Mode"
app:title="@string/settings_pgxp_cpu_mode"
app:defaultValue="false"
app:summary="Tries to track vertex manipulation through the CPU. Some games require this option for PGXP to be effective. Very slow, and incompatible with the recompiler."
app:summary="@string/settings_summary_pgxp_cpu_mode"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:key="CPU/RecompilerICache"
app:title="CPU Recompiler ICache"
app:title="@string/settings_cpu_recompiler_icache"
app:defaultValue="false"
app:summary="Determines whether the CPU's instruction cache is simulated in the recompiler. Improves accuracy at a small cost to performance. If games are running too fast, try enabling this option."
app:summary="@string/settings_summary_cpu_recompiler_icache"
app:iconSpaceReserved="false" />
<ListPreference
app:key="CPU/FastmemMode"
app:title="CPU Recompiler Fast Memory Access"
app:title="@string/settings_cpu_recompiler_fastmem"
app:entries="@array/settings_cpu_fastmem_mode_entries"
app:entryValues="@array/settings_cpu_fastmem_mode_values"
app:useSimpleSummaryProvider="true"
app:defaultValue="MMap"
app:summary="Makes guest memory access more efficient by using page faults and backpatching. Disable if it is unstable on your device."
app:summary="@string/settings_summary_cpu_recompiler_fastmem"
app:iconSpaceReserved="false" />
<ListPreference
app:key="Display/MaxFPS"
app:title="Presented Frame Limit"
app:title="@string/settings_presented_frame_limit"
app:defaultValue="60"
app:entries="@array/settings_advanced_display_fps_limit_entries"
app:entryValues="@array/settings_advanced_display_fps_limit_values"
@ -77,7 +77,7 @@
app:iconSpaceReserved="false" />
<ListPreference
app:key="Logging/LogLevel"
app:title="Logging Level"
app:title="@string/settings_logging_level"
app:defaultValue="Warning"
app:entries="@array/settings_log_level_entries"
app:entryValues="@array/settings_log_level_values"
@ -85,15 +85,15 @@
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:key="Logging/LogToFile"
app:title="Log To File"
app:title="@string/settings_log_to_file"
app:defaultValue="false"
app:summary="Writes log messages to duckstation.log in your user directory. Only use for debugging as it slows down emulation."
app:summary="@string/settings_summary_log_to_file"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:key="Logging/LogToDebug"
app:title="Log To Logcat"
app:title="@string/settings_log_to_logcat"
app:defaultValue="false"
app:summary="Writes log messages to the Android message logger. Only useful when attached to a computer with adb."
app:summary="@string/settings_summary_log_to_logcat"
app:iconSpaceReserved="false" />
</PreferenceScreen>