mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-11 06:25:26 +00:00
Merge pull request #311 from lioncash/master
Multi-language support for the Android version of the front-end. Also some very tiny simplifications.
This commit is contained in:
commit
9b146b774d
@ -25,9 +25,6 @@
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity android:name=".browser.HoneycombPopupMenu"></activity>
|
||||
<activity android:name=".browser.LazyPopupMenu"></activity>
|
||||
<activity android:name=".browser.PopupMenuAbstract"></activity>
|
||||
<activity android:name=".browser.ReportIME"></activity>
|
||||
<activity android:name=".browser.IMEActivity"></activity>
|
||||
<activity android:name=".browser.HelpActivity"></activity>
|
||||
|
@ -1,40 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string-array name="back_options">
|
||||
<item>Quit</item>
|
||||
<item>Menu toggle</item>
|
||||
<string-array name="back_options" translatable="false">
|
||||
<item>@string/quit</item>
|
||||
<item>@string/menu_toggle</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="back_options_values">
|
||||
<string-array name="back_options_values" translatable="false">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="audio_latency_options">
|
||||
<item> 64ms (Low)</item>
|
||||
<item> 96ms (Medium)</item>
|
||||
<item>128ms (Medium)</item>
|
||||
<item>160ms (High)</item>
|
||||
<string-array name="audio_latency_options" translatable="false">
|
||||
<item>@string/sixty_four_ms</item>
|
||||
<item>@string/ninety_six_ms</item>
|
||||
<item>@string/one_twenty_eight_ms</item>
|
||||
<item>@string/one_sixty_ms</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="audio_latency_options_values">
|
||||
<string-array name="audio_latency_options_values" translatable="false">
|
||||
<item>64</item>
|
||||
<item>96</item>
|
||||
<item>128</item>
|
||||
<item>160</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="aspect_ratios">
|
||||
<item>Full screen</item>
|
||||
<item>Auto</item>
|
||||
<item>Square pixel</item>
|
||||
<string-array name="aspect_ratios" translatable="false">
|
||||
<item>@string/fullscreen</item>
|
||||
<item>@string/automatic</item>
|
||||
<item>@string/square_pixel</item>
|
||||
<item>4:3</item>
|
||||
<item>16:9</item>
|
||||
<item>16:10</item>
|
||||
<item>8:7</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="aspect_values">
|
||||
<string-array name="aspect_values" translatable="false">
|
||||
<item>full</item>
|
||||
<item>auto</item>
|
||||
<item>square</item>
|
||||
@ -44,21 +44,21 @@
|
||||
<item>1.14286</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="icade_profiles">
|
||||
<string-array name="icade_profiles" translatable="false">
|
||||
<item>Red Samurai</item>
|
||||
<item>iPega PG-9017</item>
|
||||
<item>iPega PG-9017 (Mode 2)</item>
|
||||
<item>Gamestop Wireless</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="icade_profiles_values">
|
||||
<string-array name="icade_profiles_values" translatable="false">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
<item>3</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="key_bind_values">
|
||||
<string-array name="key_bind_values" translatable="false">
|
||||
<item>UNBOUND</item>
|
||||
<item>SOFT LEFT</item>
|
||||
<item>SOFT RIGHT</item>
|
||||
|
@ -5,10 +5,209 @@
|
||||
<string name="file_type_icon">File type icon</string>
|
||||
<string name="key_bind_title">Select the button to use</string>
|
||||
<string name="key_bind_clear">Unbind</string>
|
||||
<string name="report_ime">Report IME</string>
|
||||
<string name="report_refreshrate">Report Refresh Rate</string>
|
||||
<string name="key_bind_detect">Detect</string>
|
||||
<string name="optimal_settings_device">Optimal device settings</string>
|
||||
<string name="extracting_assets_please_wait_">Extracting assets, please wait ...</string>
|
||||
<string name="extracting_assets_please_wait_">Extracting assets, please wait …</string>
|
||||
|
||||
<!-- Main Menu Strings -->
|
||||
<string name="mainmenu_title">RetroArch - Main Menu</string>
|
||||
<string name="tv_mode">TV Mode</string>
|
||||
<string name="load_core">Load Core</string>
|
||||
<string name="load_game">Load Game</string>
|
||||
<string name="load_game_history">Load Game (History)</string>
|
||||
<string name="video_options">Video Options</string>
|
||||
<string name="audio_options">Audio Options</string>
|
||||
<string name="input_options">Input Options</string>
|
||||
<string name="path_options">Path Options</string>
|
||||
<string name="settings">Settings</string>
|
||||
<string name="help">Help</string>
|
||||
<string name="about">About</string>
|
||||
|
||||
<!-- Core Selection Class -->
|
||||
<string name="select_libretro_core">Select Libretro core</string>
|
||||
|
||||
<!-- Display Refresh Rate Test Class -->
|
||||
<string name="refresh_rate_calibration">Refresh rate calibration</string>
|
||||
<string name="touch_screen_with_fingers">Touch the screen with your fingers for more accurate measurements.</string>
|
||||
<string name="refresh_rate_measured_to">Refresh rate measured to: %1$s Hz.</string>
|
||||
|
||||
<!-- History Selection Class -->
|
||||
<string name="recently_played_games">Recently played games</string>
|
||||
<string name="loading_gamepath">Loading [%1$s]…</string>
|
||||
|
||||
<!-- Key Bind Preference Class -->
|
||||
<string name="current_binding">Current: %1$s</string>
|
||||
<string name="press_key_to_use">Press key to use</string>
|
||||
|
||||
<!-- Main Menu Class -->
|
||||
<string name="no_core">No core</string>
|
||||
<string name="welcome_to_retroarch">Welcome to RetroArch</string>
|
||||
<string name="welcome_to_retroarch_desc">This is your first time starting up RetroArch. RetroArch will now be preconfigured for the best possible gameplay experience.</string>
|
||||
<string name="detect_device_msg_ouya">The ideal configuration options for your device will now be preconfigured.\n\nNOTE: For optimal performance, turn off Google Account sync, GPS and Wi-Fi in your Android settings menu.</string>
|
||||
<string name="detect_device_msg_general">The ideal configuration options for your device will now be preconfigured.\n\nNOTE: For optimal performance, turn off Google Account sync, Google Play Store auto-updates, GPS and Wi-Fi in your Android settings menu.</string>
|
||||
<string name="nvidia_shield_detected">NVidia Shield detected</string>
|
||||
<string name="game_mid_detected">GameMID detected</string>
|
||||
<string name="ouya_detected">OUYA detected</string>
|
||||
<string name="xperia_play_detected">Xperia Play detected</string>
|
||||
<string name="nexus_7_2013_detected">Nexus 7 2013 detected</string>
|
||||
<string name="no_optimal_settings">Device either not detected in list or doesn\'t have any optimal settings in our database.</string>
|
||||
<string name="load_a_core_first">Go to \'Load Core\' and select a core first.</string>
|
||||
<string name="loading_data">Loading [%1$s]…</string>
|
||||
|
||||
<!-- Refresh Rate Set OS Class -->
|
||||
<string name="using_os_reported_refresh_rate">Using OS-reported refresh rate of: %1$s Hz.</string>
|
||||
|
||||
<!-- Settings Based Strings -->
|
||||
|
||||
<!-- Back Options -->
|
||||
<string name="quit">Quit</string>
|
||||
<string name="menu_toggle">Menu toggle</string>
|
||||
|
||||
<!-- Audio Settings -->
|
||||
<string name="audio">Audio</string>
|
||||
<string name="enable_audio">Enable audio</string>
|
||||
<string name="dynamic_rate_control">Dynamic rate control</string>
|
||||
<string name="dynamic_rate_control_desc">Enable dynamic rate control (recommended).</string>
|
||||
<string name="audio_latency">Audio latency</string>
|
||||
<string name="audio_latency_desc">Set the amount of desired audio latency. Your mileage may vary on the device you are using.</string>
|
||||
<string name="auto_audio_latency">Automatically detect audio latency</string>
|
||||
<string name="auto_audio_latency_desc">Use automatic audio latency detection. Only available for Android 4.1 and up - your mileage may vary based on the device you are using.</string>
|
||||
<string name="sixty_four_ms">64ms (Low)</string>
|
||||
<string name="ninety_six_ms">96ms (Medium)</string>
|
||||
<string name="one_twenty_eight_ms">128ms (Medium)</string>
|
||||
<string name="one_sixty_ms">160ms (High)</string>
|
||||
|
||||
<!-- Input Settings -->
|
||||
<string name="back_behavior">Back behavior</string>
|
||||
<string name="back_behavior_desc">Select how you want the Back button to behave.</string>
|
||||
<string name="ime">IME</string>
|
||||
<string name="ime_method">Set Input Method</string>
|
||||
<string name="ime_method_desc">Sets IME to be used in-game.</string>
|
||||
<string name="config_autodetect">Enable configuration autodetect</string>
|
||||
<string name="config_autodetect_desc">This will attempt to preconfigure various gamepads and/or IME apps that you connect.</string>
|
||||
<string name="list_autodetected">List of autodetected devices</string>
|
||||
<string name="autodetected_pads">Configuration Autodetect - Supported Pads</string>
|
||||
<string name="icade_profile_pad_one">iCade profile Pad 1</string>
|
||||
<string name="icade_profile_pad_one_desc">Select the iCade profile to use for controller 1.</string>
|
||||
<string name="icade_profile_pad_two">iCade profile Pad 2</string>
|
||||
<string name="icade_profile_pad_two_desc">Select the iCade profile to use for controller 2.</string>
|
||||
<string name="icade_profile_pad_three">iCade profile Pad 3</string>
|
||||
<string name="icade_profile_pad_three_desc">Select the iCade profile to use for controller 3.</string>
|
||||
<string name="icade_profile_pad_four">iCade profile Pad 4</string>
|
||||
<string name="icade_profile_pad_four_desc">Select the iCade profile to use for controller 4.</string>
|
||||
<string name="debug_input_reporting">Debug input reporting</string>
|
||||
<string name="debug_input_reporting_desc">This will report keycodes on-screen generated by your input device(s). Useful for debugging.</string>
|
||||
<string name="touchscreen_overlay">Touchscreen Overlay</string>
|
||||
<string name="touchscreen_overlay_desc">Enable touchscreen overlays (WARNING: Lower-resolution overlays might be more suitable for less powerful devices).</string>
|
||||
<string name="input_overlay">Input overlay</string>
|
||||
<string name="input_overlay_desc">Sets touchscreen overlay config.</string>
|
||||
<string name="overlay_opacity">Overlay opacity</string>
|
||||
<string name="overlay_opacity_desc">Set the opacity of the touch overlay.</string>
|
||||
<string name="custom_binds">Custom Binds</string>
|
||||
<string name="player_1_custom_binds">Player 1 Custom Binds</string>
|
||||
<string name="player_2_custom_binds">Player 2 Custom Binds</string>
|
||||
<string name="player_3_custom_binds">Player 3 Custom Binds</string>
|
||||
<string name="player_4_custom_binds">Player 4 Custom Binds</string>
|
||||
<string name="up_button">Up Button</string>
|
||||
<string name="down_button">Down Button</string>
|
||||
<string name="left_button">Left Button</string>
|
||||
<string name="right_button">Right Button</string>
|
||||
<string name="a_button">A Button</string>
|
||||
<string name="b_button">B Button</string>
|
||||
<string name="x_button">X Button</string>
|
||||
<string name="y_button">Y Button</string>
|
||||
<string name="start_button">Start Button</string>
|
||||
<string name="select_button">Select Button</string>
|
||||
<string name="l1_button">L1 Button</string>
|
||||
<string name="l2_button">L2 Button</string>
|
||||
<string name="l3_button">L3 Button</string>
|
||||
<string name="r1_button">R1 Button</string>
|
||||
<string name="r2_button">R2 Button</string>
|
||||
<string name="r3_button">R3 Button</string>
|
||||
<string name="diagnostics">Diagnostics</string>
|
||||
<string name="report_ime">Report IME</string>
|
||||
<string name="report_ime_desc">Reports the current IME (Input Method Editor) name.</string>
|
||||
|
||||
<!-- Path Settings -->
|
||||
<string name="rom_paths">ROM paths</string>
|
||||
<string name="rom_directory">ROM directory</string>
|
||||
<string name="rom_directory_desc">Sets directory where ROM browser will first browse for ROM files.</string>
|
||||
<string name="save_files">Save files</string>
|
||||
<string name="enable_custom_dir">Enable custom directory</string>
|
||||
<string name="savefiles_custom_dir">Enables use of custom save file folder. (.srm) save files will be saved and loaded to configured directory. If not enabled, save files will reside in ROM folder.</string>
|
||||
<string name="savefile_directory">Savefile directory</string>
|
||||
<string name="savefile_directory_desc">Sets directory where to save and load game save files.</string>
|
||||
<string name="save_states">Save states</string>
|
||||
<string name="savestates_custom_dir">Enables use of custom save state folder. (.state) save states will be saved and loaded to configured directory. If not enabled, save states will reside in ROM folder.</string>
|
||||
<string name="save_state_directory">Save state directory</string>
|
||||
<string name="save_state_directory_desc">Sets directory where to save and load game save states.</string>
|
||||
<string name="system">System</string>
|
||||
<string name="system_custom_dir">Enables use of custom system folder. Cores will look for system specific files, like BIOSes, in this folder. If not enabled, it will look in the ROM folder.</string>
|
||||
<string name="system_directory">System directory</string>
|
||||
<string name="system_directory_desc">Sets directory where system files are loaded from.</string>
|
||||
|
||||
<!-- Settings Menu -->
|
||||
<string name="config_style">Configuration style</string>
|
||||
<string name="global_config">Global configuration</string>
|
||||
<string name="global_config_desc">Enable global settings for all cores. Leave disabled if you want per-core settings.</string>
|
||||
<string name="auto_load_state">Auto load state</string>
|
||||
<string name="auto_load_state_desc">Loads an automatically created savestate (*.state.auto) at startup.</string>
|
||||
<string name="auto_save_state">Auto save state</string>
|
||||
<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>
|
||||
|
||||
<!-- Video Settings -->
|
||||
<string name="fullscreen">Full screen</string>
|
||||
<string name="automatic">Auto</string>
|
||||
<string name="square_pixel">Square pixel</string>
|
||||
<string name="vsync">VSync</string>
|
||||
<string name="vsync_desc">When set to enabled, prevents screen tearing.</string>
|
||||
<string name="auto_rotate">Auto-rotate</string>
|
||||
<string name="auto_rotate_desc">Will auto-rotate the screen for vertically oriented games.</string>
|
||||
<string name="scale_integer">Scale integer</string>
|
||||
<string name="scale_integer_desc">Scales video only in whole steps of game resolution. Useful when playing without bilinear filtering.</string>
|
||||
<string name="aspect_ratio">Aspect ratio</string>
|
||||
<string name="aspect_ratio_desc">Aspect ratio to enforce.</string>
|
||||
<string name="synchronization">Synchronization</string>
|
||||
<string name="threaded_video_driver">Threaded video driver</string>
|
||||
<string name="threaded_video_driver_desc">Uses a multi-threaded video driver. Is likely to improve performance at the expense of slightly more latency and jitter. Use this if you have troubles getting good video and audio.</string>
|
||||
<string name="forced_refresh_rate">Forced refresh rate (Hz)</string>
|
||||
<string name="forced_refresh_rate_desc">Force a specific refresh rate to be detected. Only set manually if calibration reports wrong refresh rate.</string>
|
||||
<string name="calibrate_refresh_rate">Calibrate refresh rate</string>
|
||||
<string name="calibrate_refresh_rate_desc">Attempts to find the true refresh rate of monitor. Updates value in \'Force refresh rate (Hz)\' option. To help ensure accuracy, make sure no intense background services are running, and avoid triggering screensaver.</string>
|
||||
<string name="set_os_reported_refresh_rate">Set OS-reported refresh rate</string>
|
||||
<string name="set_os_reported_refresh_rate_desc">Sets refresh rate equal to OS-reported value. This might not be accurate for your device.</string>
|
||||
<string name="shaders">Shaders</string>
|
||||
<string name="bilinear_filter">Bilinear filter</string>
|
||||
<string name="bilinear_filter_desc">Applies Bilinear filtering, smooths out edges (settings still apply even if no shader is selected).</string>
|
||||
<string name="first_pass_shader">First-pass shader</string>
|
||||
<string name="first_pass_shader_desc">Enable first pass shader (WARNING: recommended system requirements for these shaders is a Tegra 4 / Exynos 5 class GPU and/or higher).</string>
|
||||
<string name="glsl_shader">GLSL shader</string>
|
||||
<string name="glsl_shader_desc">Sets GLES2 style shader.</string>
|
||||
<string name="fonts">Fonts</string>
|
||||
<string name="onscreen_fonts">On-screen fonts</string>
|
||||
<string name="onscreen_fonts_desc">Enable rendering of on-screen fonts for messages.</string>
|
||||
|
||||
<!-- Help Menu -->
|
||||
<string name="websites">Websites</string>
|
||||
<string name="retro_website">RetroArch/libretro homepage</string>
|
||||
<string name="retro_website_desc">The official homepage of the RetroArch/libretro project.</string>
|
||||
<string name="manuals">Manuals</string>
|
||||
<string name="retroarch_guide">RetroArch Guide (PDF)</string>
|
||||
<string name="retroarch_guide_desc">The manual to RetroArch Android in PDF format.</string>
|
||||
<string name="cores_guide">Cores Guide (PDF)</string>
|
||||
<string name="cores_guide_desc">The manual to most libretro cores in PDF format.</string>
|
||||
<string name="development">Development</string>
|
||||
<string name="overlay_guide">Overlay Guide (PDF)</string>
|
||||
<string name="overlay_guide_desc">Explains howto make your own overlays.</string>
|
||||
|
||||
<!-- Miscellaneous -->
|
||||
<string name="ok">OK</string>
|
||||
<string name="close">Close</string>
|
||||
<string name="general">General</string>
|
||||
<string name="enable">Enable</string>
|
||||
|
||||
|
||||
</resources>
|
||||
|
@ -1,482 +1,482 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:title="RetroArch - Main Menu" >
|
||||
android:title="@string/mainmenu_title" >
|
||||
|
||||
<PreferenceScreen android:title="TV Mode">
|
||||
<PreferenceScreen android:title="@string/tv_mode">
|
||||
<intent
|
||||
android:targetClass="org.retroarch.browser.RetroTVMode"
|
||||
android:targetPackage="org.retroarch" />
|
||||
</PreferenceScreen>
|
||||
<PreferenceScreen android:title="Load Core">
|
||||
<PreferenceScreen android:title="@string/load_core">
|
||||
<intent
|
||||
android:targetClass="org.retroarch.browser.CoreSelection"
|
||||
android:targetPackage="org.retroarch" />
|
||||
</PreferenceScreen>
|
||||
<PreferenceScreen android:title="Load Game">
|
||||
<PreferenceScreen android:title="@string/load_game">
|
||||
<intent
|
||||
android:targetClass="org.retroarch.browser.ROMActivity"
|
||||
android:targetPackage="org.retroarch" />
|
||||
</PreferenceScreen>
|
||||
<PreferenceScreen android:title="Load Game (History)">
|
||||
<PreferenceScreen android:title="@string/load_game_history">
|
||||
<intent
|
||||
android:targetClass="org.retroarch.browser.HistorySelection"
|
||||
android:targetPackage="org.retroarch" />
|
||||
</PreferenceScreen>
|
||||
<PreferenceScreen android:title="Video Options" >
|
||||
<PreferenceCategory android:title="General" >
|
||||
<PreferenceScreen android:title="@string/video_options" >
|
||||
<PreferenceCategory android:title="@string/general" >
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="video_vsync"
|
||||
android:summary="When set to enabled, prevents screen tearing."
|
||||
android:title="VSync" />
|
||||
android:summary="@string/vsync_desc"
|
||||
android:title="@string/vsync" />
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="video_allow_rotate"
|
||||
android:summary="Will auto-rotate the screen for vertically oriented games."
|
||||
android:title="Auto-rotate" />
|
||||
android:summary="@string/auto_rotate_desc"
|
||||
android:title="@string/auto_rotate" />
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="video_scale_integer"
|
||||
android:summary="Scales video only in whole steps of game resolution. Useful when playing without bilinear filtering."
|
||||
android:title="Scale integer" />
|
||||
android:summary="@string/scale_integer_desc"
|
||||
android:title="@string/scale_integer" />
|
||||
|
||||
<ListPreference
|
||||
android:entries="@array/aspect_ratios"
|
||||
android:entryValues="@array/aspect_values"
|
||||
android:defaultValue="auto"
|
||||
android:key="video_aspect_ratio"
|
||||
android:summary="Aspect ratio to enforce."
|
||||
android:title="Aspect ratio" />
|
||||
android:summary="@string/aspect_ratio_desc"
|
||||
android:title="@string/aspect_ratio" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="Synchronization" >
|
||||
<PreferenceCategory android:title="@string/synchronization" >
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="video_threaded"
|
||||
android:summary="Uses a multi-threaded video driver. Is likely to improve performance at the expense of slightly more latency and jitter. Use this if you have troubles getting good video and audio."
|
||||
android:title="Threaded video driver" />
|
||||
android:summary="@string/threaded_video_driver_desc"
|
||||
android:title="@string/threaded_video_driver" />
|
||||
<EditTextPreference
|
||||
android:key="video_refresh_rate"
|
||||
android:numeric="decimal"
|
||||
android:summary="Force a specific refresh rate to be detected. Only set manually if calibration reports wrong refresh rate."
|
||||
android:title="Forced refresh rate (Hz)" />
|
||||
android:summary="@string/forced_refresh_rate_desc"
|
||||
android:title="@string/forced_refresh_rate" />
|
||||
<Preference
|
||||
android:summary="Attempts to find the true refresh rate of monitor. Updates value in 'Force refresh rate (Hz)' option. To help ensure accuracy, make sure no intense background services are running, and avoid triggering screensaver."
|
||||
android:title="Calibrate refresh rate" >
|
||||
android:summary="@string/calibrate_refresh_rate_desc"
|
||||
android:title="@string/calibrate_refresh_rate" >
|
||||
<intent
|
||||
android:targetClass="org.retroarch.browser.DisplayRefreshRateTest"
|
||||
android:targetPackage="org.retroarch" />
|
||||
</Preference>
|
||||
<Preference
|
||||
android:summary="Sets refresh rate equal to OS-reported value. This might not be accurate for your device."
|
||||
android:title="Set OS-reported refresh rate" >
|
||||
android:summary="@string/set_os_reported_refresh_rate_desc"
|
||||
android:title="@string/set_os_reported_refresh_rate" >
|
||||
<intent
|
||||
android:targetClass="org.retroarch.browser.RefreshRateSetOS"
|
||||
android:targetPackage="org.retroarch" />
|
||||
</Preference>
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="Shaders" >
|
||||
<PreferenceCategory android:title="@string/shaders" >
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="video_smooth"
|
||||
android:summary="Applies Bilinear filtering, smooths out edges (settings still apply even if no shader is selected)."
|
||||
android:title="Bilinear filter" />
|
||||
android:summary="@string/bilinear_filter_desc"
|
||||
android:title="@string/bilinear_filter" />
|
||||
<CheckBoxPreference
|
||||
android:summary="Enable first pass shader (WARNING: recommended system requirements for these shaders is a Tegra 4 / Exynos 5 class GPU and/or higher)."
|
||||
android:summary="@string/first_pass_shader_desc"
|
||||
android:defaultValue="false"
|
||||
android:key="video_shader_enable"
|
||||
android:title="Enable" />
|
||||
android:title="@string/first_pass_shader" />
|
||||
|
||||
<Preference
|
||||
android:summary="Sets GLES2 style shader."
|
||||
android:title="GLSL shader"
|
||||
android:summary="@string/glsl_shader_desc"
|
||||
android:title="@string/glsl_shader"
|
||||
android:dependency="video_shader_enable" >
|
||||
<intent
|
||||
android:targetClass="org.retroarch.browser.ShaderActivity"
|
||||
android:targetPackage="org.retroarch" />
|
||||
</Preference>
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="Fonts">
|
||||
<CheckBoxPreference android:title="Enable on-screen fonts"
|
||||
android:summary="Enable rendering of on-screen fonts for messages."
|
||||
<PreferenceCategory android:title="@string/fonts">
|
||||
<CheckBoxPreference android:title="@string/onscreen_fonts"
|
||||
android:summary="@string/onscreen_fonts_desc"
|
||||
android:key="video_font_enable"
|
||||
android:defaultValue="true"/>
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
||||
<PreferenceScreen android:title="Audio Options" >
|
||||
<PreferenceCategory android:title="Audio" >
|
||||
<PreferenceScreen android:title="@string/audio_options" >
|
||||
<PreferenceCategory android:title="@string/audio" >
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="audio_enable"
|
||||
android:title="Enable" />
|
||||
android:title="@string/enable_audio" />
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="audio_rate_control"
|
||||
android:summary="Enable dynamic rate control (recommended)."
|
||||
android:title="Dynamic Rate Control"
|
||||
android:summary="@string/dynamic_rate_control_desc"
|
||||
android:title="@string/dynamic_rate_control"
|
||||
android:dependency="audio_enable" />
|
||||
<ListPreference
|
||||
android:entries="@array/audio_latency_options"
|
||||
android:entryValues="@array/audio_latency_options_values"
|
||||
android:defaultValue="64"
|
||||
android:key="audio_latency"
|
||||
android:summary="Set the amount of desired audio latency. Your mileage may vary on the device you are using."
|
||||
android:title="Audio latency"
|
||||
android:summary="@string/audio_latency_desc"
|
||||
android:title="@string/audio_latency"
|
||||
android:dependency="audio_enable" />
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="audio_latency_auto"
|
||||
android:summary="Use automatic audio latency detection. Only available for Android 4.1 and up - your mileage may vary based on the device you are using."
|
||||
android:title="Automatic audio latency"
|
||||
android:summary="@string/auto_audio_latency_desc"
|
||||
android:title="@string/auto_audio_latency"
|
||||
android:dependency="audio_enable" />
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
||||
<PreferenceScreen android:title="Input Options" >
|
||||
<PreferenceCategory android:title="General" >
|
||||
<PreferenceScreen android:title="@string/input_options" >
|
||||
<PreferenceCategory android:title="@string/general" >
|
||||
<ListPreference
|
||||
android:entries="@array/back_options"
|
||||
android:entryValues="@array/back_options_values"
|
||||
android:defaultValue="0"
|
||||
android:key="input_back_behavior"
|
||||
android:summary="Select how you want the Back button to behave."
|
||||
android:title="Back behavior" />
|
||||
android:summary="@string/back_behavior_desc"
|
||||
android:title="@string/back_behavior" />
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory android:title="IME" >
|
||||
<PreferenceCategory android:title="@string/ime" >
|
||||
<Preference
|
||||
android:summary="Sets IME to be used in-game."
|
||||
android:title="Set Input Method" >
|
||||
android:summary="@string/ime_method_desc"
|
||||
android:title="@string/ime_method" >
|
||||
<intent
|
||||
android:targetClass="org.retroarch.browser.IMEActivity"
|
||||
android:targetPackage="org.retroarch" />
|
||||
</Preference>
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory android:title="Configuration Autodetect" >
|
||||
<PreferenceCategory android:title="@string/config_autodetect" >
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="input_autodetect_enable"
|
||||
android:summary="This will attempt to preconfigure various gamepads and/or IME apps that you connect."
|
||||
android:title="Enable"
|
||||
android:summary="@string/config_autodetect_desc"
|
||||
android:title="@string/enable"
|
||||
android:disableDependentsState="true" />
|
||||
<PreferenceScreen android:title="List of autodetected devices" >
|
||||
<PreferenceCategory android:title="Configuration Autodetect - Supported Pads" android:layout="@layout/faq_supported_pads" >
|
||||
<PreferenceScreen android:title="@string/list_autodetected" >
|
||||
<PreferenceCategory android:title="@string/autodetected_pads" android:layout="@layout/faq_supported_pads" >
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
||||
<ListPreference
|
||||
android:entries="@array/icade_profiles"
|
||||
android:entryValues="@array/icade_profiles_values"
|
||||
android:key="input_autodetect_icade_profile_pad1"
|
||||
android:summary="Select the iCade profile to use for controller 1."
|
||||
android:title="iCade profile Pad 1" />
|
||||
android:summary="@string/icade_profile_pad_one_desc"
|
||||
android:title="@string/icade_profile_pad_one" />
|
||||
<ListPreference
|
||||
android:entries="@array/icade_profiles"
|
||||
android:entryValues="@array/icade_profiles_values"
|
||||
android:key="input_autodetect_icade_profile_pad2"
|
||||
android:summary="Select the iCade profile to use for controller 2."
|
||||
android:title="iCade profile Pad 2" />
|
||||
android:summary="@string/icade_profile_pad_two_desc"
|
||||
android:title="@string/icade_profile_pad_two" />
|
||||
<ListPreference
|
||||
android:entries="@array/icade_profiles"
|
||||
android:entryValues="@array/icade_profiles_values"
|
||||
android:key="input_autodetect_icade_profile_pad3"
|
||||
android:summary="Select the iCade profile to use for controller 3."
|
||||
android:title="iCade profile Pad 3" />
|
||||
android:summary="@string/icade_profile_pad_three_desc"
|
||||
android:title="@string/icade_profile_pad_three" />
|
||||
<ListPreference
|
||||
android:entries="@array/icade_profiles"
|
||||
android:entryValues="@array/icade_profiles_values"
|
||||
android:key="input_autodetect_icade_profile_pad4"
|
||||
android:summary="Select the iCade profile to use for controller 4."
|
||||
android:title="iCade profile Pad 4" />
|
||||
android:summary="@string/icade_profile_pad_four_desc"
|
||||
android:title="@string/icade_profile_pad_four" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="Debug input reporting" >
|
||||
<PreferenceCategory android:title="@string/debug_input_reporting" >
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="input_debug_enable"
|
||||
android:summary="This will report keycodes on-screen generated by your input device(s). Useful for debugging."
|
||||
android:title="Enable" />
|
||||
android:summary="@string/debug_input_reporting_desc"
|
||||
android:title="@string/enable" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="Touchscreen Overlay" >
|
||||
<PreferenceCategory android:title="@string/touchscreen_overlay" >
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="input_overlay_enable"
|
||||
android:summary="Enable touchscreen overlays (WARNING: Lower-resolution overlays might be more suitable for less powerful devices)."
|
||||
android:title="Enable" />
|
||||
android:summary="@string/touchscreen_overlay_desc"
|
||||
android:title="@string/enable" />
|
||||
|
||||
<Preference
|
||||
android:summary="Sets touchscreen overlay config."
|
||||
android:title="Input overlay"
|
||||
android:summary="@string/input_overlay_desc"
|
||||
android:title="@string/input_overlay"
|
||||
android:dependency="input_overlay_enable" >
|
||||
<intent
|
||||
android:targetClass="org.retroarch.browser.OverlayActivity"
|
||||
android:targetPackage="org.retroarch" />
|
||||
</Preference>
|
||||
<org.retroarch.browser.SeekbarPreference
|
||||
android:summary="Set the opacity of the touch overlay."
|
||||
android:title="Overlay opacity"
|
||||
android:summary="@string/overlay_opacity_desc"
|
||||
android:title="@string/overlay_opacity"
|
||||
android:key="input_overlay_opacity"
|
||||
android:dependency="input_overlay_enable" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="Custom Binds">
|
||||
<PreferenceCategory android:title="@string/custom_binds">
|
||||
<PreferenceScreen
|
||||
android:title="Player 1 Custom Binds"
|
||||
android:title="@string/player_1_custom_binds"
|
||||
android:dependency="input_autodetect_enable" >
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player1_up_btn"
|
||||
android:title="Up Button" />
|
||||
android:title="@string/up_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player1_down_btn"
|
||||
android:title="Down Button" />
|
||||
android:title="@string/down_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player1_left_btn"
|
||||
android:title="Left Button" />
|
||||
android:title="@string/left_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player1_right_btn"
|
||||
android:title="Right Button" />
|
||||
android:title="@string/right_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player1_a_btn"
|
||||
android:title="A Button" />
|
||||
android:title="@string/a_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player1_b_btn"
|
||||
android:title="B Button" />
|
||||
android:title="@string/b_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player1_x_btn"
|
||||
android:title="X Button" />
|
||||
android:title="@string/x_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player1_y_btn"
|
||||
android:title="Y Button" />
|
||||
android:title="@string/y_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player1_start_btn"
|
||||
android:title="Start Button" />
|
||||
android:title="@string/start_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player1_select_btn"
|
||||
android:title="Select Button" />
|
||||
android:title="@string/select_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player1_l_btn"
|
||||
android:title="L1 Button" />
|
||||
android:title="@string/l1_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player1_r_btn"
|
||||
android:title="R1 Button" />
|
||||
android:title="@string/r1_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player1_l2_btn"
|
||||
android:title="L2 Button" />
|
||||
android:title="@string/l2_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player1_r2_btn"
|
||||
android:title="R2 Button" />
|
||||
android:title="@string/r2_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player1_l3_btn"
|
||||
android:title="L3 Button" />
|
||||
android:title="@string/l3_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player1_r3_btn"
|
||||
android:title="R3 Button" />
|
||||
android:title="@string/r3_button" />
|
||||
</PreferenceScreen>
|
||||
<PreferenceScreen
|
||||
android:title="Player 2 Custom Binds"
|
||||
android:title="@string/player_2_custom_binds"
|
||||
android:dependency="input_autodetect_enable" >
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player2_up_btn"
|
||||
android:title="Up Button" />
|
||||
android:title="@string/up_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player2_down_btn"
|
||||
android:title="Down Button" />
|
||||
android:title="@string/down_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player2_left_btn"
|
||||
android:title="Left Button" />
|
||||
android:title="@string/left_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player2_right_btn"
|
||||
android:title="Right Button" />
|
||||
android:title="@string/right_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player2_a_btn"
|
||||
android:title="A Button" />
|
||||
android:title="@string/a_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player2_b_btn"
|
||||
android:title="B Button" />
|
||||
android:title="@string/b_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player2_x_btn"
|
||||
android:title="X Button" />
|
||||
android:title="@string/x_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player2_y_btn"
|
||||
android:title="Y Button" />
|
||||
android:title="@string/y_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player2_start_btn"
|
||||
android:title="Start Button" />
|
||||
android:title="@string/start_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player2_select_btn"
|
||||
android:title="Select Button" />
|
||||
android:title="@string/select_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player2_l_btn"
|
||||
android:title="L1 Button" />
|
||||
android:title="@string/l1_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player2_r_btn"
|
||||
android:title="R1 Button" />
|
||||
android:title="@string/r1_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player2_l2_btn"
|
||||
android:title="L2 Button" />
|
||||
android:title="@string/l2_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player2_r2_btn"
|
||||
android:title="R2 Button" />
|
||||
android:title="@string/r2_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player2_l3_btn"
|
||||
android:title="L3 Button" />
|
||||
android:title="@string/l3_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player2_r3_btn"
|
||||
android:title="R3 Button" />
|
||||
android:title="@string/r3_button" />
|
||||
</PreferenceScreen>
|
||||
<PreferenceScreen
|
||||
android:title="Player 3 Custom Binds"
|
||||
android:title="@string/player_3_custom_binds"
|
||||
android:dependency="input_autodetect_enable" >
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player3_up_btn"
|
||||
android:title="Up Button" />
|
||||
android:title="@string/up_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player3_down_btn"
|
||||
android:title="Down Button" />
|
||||
android:title="@string/down_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player3_left_btn"
|
||||
android:title="Left Button" />
|
||||
android:title="@string/left_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player3_right_btn"
|
||||
android:title="Right Button" />
|
||||
android:title="@string/right_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player3_a_btn"
|
||||
android:title="A Button" />
|
||||
android:title="@string/a_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player3_b_btn"
|
||||
android:title="B Button" />
|
||||
android:title="@string/b_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player3_x_btn"
|
||||
android:title="X Button" />
|
||||
android:title="@string/x_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player3_y_btn"
|
||||
android:title="Y Button" />
|
||||
android:title="@string/y_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player3_start_btn"
|
||||
android:title="Start Button" />
|
||||
android:title="@string/start_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player3_select_btn"
|
||||
android:title="Select Button" />
|
||||
android:title="@string/select_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player3_l_btn"
|
||||
android:title="L1 Button" />
|
||||
android:title="@string/l1_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player3_r_btn"
|
||||
android:title="R1 Button" />
|
||||
android:title="@string/r1_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player3_l2_btn"
|
||||
android:title="L2 Button" />
|
||||
android:title="@string/l2_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player3_r2_btn"
|
||||
android:title="R2 Button" />
|
||||
android:title="@string/r2_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player3_l3_btn"
|
||||
android:title="L3 Button" />
|
||||
android:title="@string/l3_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player3_r3_btn"
|
||||
android:title="R3 Button" />
|
||||
android:title="@string/r3_button" />
|
||||
</PreferenceScreen>
|
||||
<PreferenceScreen
|
||||
android:title="Player 4 Custom Binds"
|
||||
android:title="@string/player_4_custom_binds"
|
||||
android:dependency="input_autodetect_enable" >
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player4_up_btn"
|
||||
android:title="Up Button" />
|
||||
android:title="@string/up_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player4_down_btn"
|
||||
android:title="Down Button" />
|
||||
android:title="@string/down_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player4_left_btn"
|
||||
android:title="Left Button" />
|
||||
android:title="@string/left_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player4_right_btn"
|
||||
android:title="Right Button" />
|
||||
android:title="@string/right_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player4_a_btn"
|
||||
android:title="A Button" />
|
||||
android:title="@string/a_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player4_b_btn"
|
||||
android:title="B Button" />
|
||||
android:title="@string/b_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player4_x_btn"
|
||||
android:title="X Button" />
|
||||
android:title="@string/x_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player4_y_btn"
|
||||
android:title="Y Button" />
|
||||
android:title="@string/y_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player4_start_btn"
|
||||
android:title="Start Button" />
|
||||
android:title="@string/start_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player4_select_btn"
|
||||
android:title="Select Button" />
|
||||
android:title="@string/select_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player4_l_btn"
|
||||
android:title="L1 Button" />
|
||||
android:title="@string/l1_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player4_r_btn"
|
||||
android:title="R1 Button" />
|
||||
android:title="@string/r1_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player4_l2_btn"
|
||||
android:title="L2 Button" />
|
||||
android:title="@string/l2_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player4_r2_btn"
|
||||
android:title="R2 Button" />
|
||||
android:title="@string/r2_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player4_l3_btn"
|
||||
android:title="L3 Button" />
|
||||
android:title="@string/l3_button" />
|
||||
<org.retroarch.browser.KeyBindPreference
|
||||
android:key="input_player4_r3_btn"
|
||||
android:title="R3 Button" />
|
||||
android:title="@string/r3_button" />
|
||||
</PreferenceScreen>
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="Diagnostics" >
|
||||
<Preference android:title="Report IME"
|
||||
android:summary="Reports the current IME (Input Method Editor) name.">
|
||||
<PreferenceCategory android:title="@string/diagnostics" >
|
||||
<Preference android:title="@string/report_ime"
|
||||
android:summary="@string/report_ime_desc">
|
||||
<intent
|
||||
android:targetClass="org.retroarch.browser.ReportIME"
|
||||
android:targetPackage="org.retroarch" />
|
||||
</Preference>
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
||||
<PreferenceScreen android:title="Path Options">
|
||||
<PreferenceCategory android:title="ROM paths">
|
||||
<Preference android:title="ROM directory"
|
||||
android:summary="Sets directory where ROM browser will first browse for ROM files.">
|
||||
<PreferenceScreen android:title="@string/path_options">
|
||||
<PreferenceCategory android:title="@string/rom_paths">
|
||||
<Preference android:title="@string/rom_directory"
|
||||
android:summary="@string/rom_directory_desc">
|
||||
<intent
|
||||
android:targetClass="org.retroarch.browser.ROMDirActivity"
|
||||
android:targetPackage="org.retroarch" />
|
||||
</Preference>
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory android:title="Save files">
|
||||
<CheckBoxPreference android:title="Enable custom directory"
|
||||
android:summary="Enables use of custom save file folder. (.srm) save files will be saved and loaded to configured directory. If not enabled, save files will reside in ROM folder."
|
||||
<PreferenceCategory android:title="@string/save_files">
|
||||
<CheckBoxPreference android:title="@string/enable_custom_dir"
|
||||
android:summary="@string/savefiles_custom_dir"
|
||||
android:key="savefile_directory_enable"
|
||||
android:defaultValue="false"/>
|
||||
<Preference android:title="Savefile directory"
|
||||
android:summary="Sets directory where to save and load game save files."
|
||||
<Preference android:title="@string/savefile_directory"
|
||||
android:summary="@string/savefile_directory_desc"
|
||||
android:dependency="savefile_directory_enable">
|
||||
<intent
|
||||
android:targetClass="org.retroarch.browser.SRMDirActivity"
|
||||
android:targetPackage="org.retroarch" />
|
||||
</Preference>
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="Save states">
|
||||
<CheckBoxPreference android:title="Enable custom directory"
|
||||
android:summary="Enables use of custom save state folder. (.state) save states will be saved and loaded to configured directory. If not enabled, save states will reside in ROM folder."
|
||||
<PreferenceCategory android:title="@string/save_states">
|
||||
<CheckBoxPreference android:title="@string/enable_custom_dir"
|
||||
android:summary="@string/savestates_custom_dir"
|
||||
android:key="savestate_directory_enable"
|
||||
android:defaultValue="false"/>
|
||||
<Preference android:title="Save state directory"
|
||||
android:summary="Sets directory where to save and load game save states."
|
||||
<Preference android:title="@string/save_state_directory"
|
||||
android:summary="@string/save_state_directory_desc"
|
||||
android:dependency="savestate_directory_enable">
|
||||
<intent
|
||||
android:targetClass="org.retroarch.browser.StateDirActivity"
|
||||
android:targetPackage="org.retroarch" />
|
||||
</Preference>
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="System">
|
||||
<CheckBoxPreference android:title="Enable custom directory"
|
||||
android:summary="Enables use of custom system folder. Cores will look for system specific files, like BIOSes, in this folder. If not enabled, it will look in the ROM folder."
|
||||
<PreferenceCategory android:title="@string/system">
|
||||
<CheckBoxPreference android:title="@string/enable_custom_dir"
|
||||
android:summary="@string/system_custom_dir"
|
||||
android:key="system_directory_enable"
|
||||
android:defaultValue="false"/>
|
||||
<Preference android:title="System directory"
|
||||
android:summary="Sets directory where system files are loaded from."
|
||||
<Preference android:title="@string/system_directory"
|
||||
android:summary="@string/system_directory_desc"
|
||||
android:dependency="system_directory_enable">
|
||||
<intent
|
||||
android:targetClass="org.retroarch.browser.SystemDirActivity"
|
||||
@ -484,66 +484,66 @@
|
||||
</Preference>
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
||||
<PreferenceScreen android:title="Settings" >
|
||||
<PreferenceCategory android:title="Configuration style" >
|
||||
<PreferenceScreen android:title="@string/settings" >
|
||||
<PreferenceCategory android:title="@string/config_style" >
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="global_config_enable"
|
||||
android:summary="Enable global settings for all cores. Leave disabled if you want per-core settings."
|
||||
android:title="Enable global configuration" />
|
||||
android:summary="@string/global_config_desc"
|
||||
android:title="@string/global_config" />
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory android:title="General" >
|
||||
<PreferenceCategory android:title="@string/general" >
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="savestate_auto_load"
|
||||
android:summary="Loads an automatically created savestate (*.state.auto) at startup."
|
||||
android:title="Auto load state" />
|
||||
android:summary="@string/auto_load_state_desc"
|
||||
android:title="@string/auto_load_state" />
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="savestate_auto_save"
|
||||
android:summary="Automatically saves state (*.state.auto) when exiting game."
|
||||
android:title="Auto save state" />
|
||||
android:summary="@string/auto_save_state_desc"
|
||||
android:title="@string/auto_save_state" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="Rewinding" >
|
||||
<PreferenceCategory android:title="@string/rewinding" >
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="rewind_enable"
|
||||
android:summary="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)."
|
||||
android:title="Enable" />
|
||||
android:summary="@string/rewinding_desc"
|
||||
android:title="@string/enable" />
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
||||
<PreferenceScreen android:title="Help">
|
||||
<PreferenceScreen android:title="@string/help">
|
||||
<intent
|
||||
android:targetClass="org.retroarch.browser.HelpActivity"
|
||||
android:targetPackage="org.retroarch" />
|
||||
</PreferenceScreen>
|
||||
<PreferenceScreen android:title="About">
|
||||
<PreferenceCategory android:title="Websites">
|
||||
<Preference android:title="RetroArch/libretro homepage"
|
||||
android:summary="The official homepage of the RetroArch/libretro project.">
|
||||
<PreferenceScreen android:title="@string/about">
|
||||
<PreferenceCategory android:title="@string/websites">
|
||||
<Preference android:title="@string/retro_website"
|
||||
android:summary="@string/retro_website_desc">
|
||||
<intent
|
||||
android:action="android.intent.action.VIEW"
|
||||
android:data="http://www.libretro.com" />
|
||||
</Preference>
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="Manuals">
|
||||
<Preference android:title="RetroArch Guide (PDF)"
|
||||
android:summary="The manual to RetroArch Android in PDF format.">
|
||||
<PreferenceCategory android:title="@string/manuals">
|
||||
<Preference android:title="@string/retroarch_guide"
|
||||
android:summary="@string/retroarch_guide_desc">
|
||||
<intent
|
||||
android:action="android.intent.action.VIEW"
|
||||
android:data="http://www.libretro.com/documents/retroarch-manual.pdf" />
|
||||
</Preference>
|
||||
<Preference android:title="Cores Guide (PDF)"
|
||||
android:summary="The manual to most libretro cores in PDF format.">
|
||||
<Preference android:title="@string/cores_guide"
|
||||
android:summary="@string/cores_guide_desc">
|
||||
<intent
|
||||
android:action="android.intent.action.VIEW"
|
||||
android:data="http://www.libretro.com/documents/retroarch-cores-manual.pdf" />
|
||||
</Preference>
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="Development">
|
||||
<Preference android:title="Overlay Guide (PDF)"
|
||||
android:summary="Explains howto make your own overlays.">
|
||||
<PreferenceCategory android:title="@string/development">
|
||||
<Preference android:title="@string/overlay_guide"
|
||||
android:summary="@string/overlay_guide_desc">
|
||||
<intent
|
||||
android:action="android.intent.action.VIEW"
|
||||
android:data="http://www.libretro.com/documents/overlay.pdf" />
|
||||
|
@ -10,7 +10,7 @@ import java.io.PrintWriter;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class ConfigFile {
|
||||
public final class ConfigFile {
|
||||
private HashMap<String, String> map = new HashMap<String, String>();
|
||||
|
||||
public void append(InputStream stream) throws IOException {
|
||||
|
@ -13,7 +13,7 @@ import android.view.*;
|
||||
|
||||
// JELLY_BEAN_MR1 = 17
|
||||
|
||||
public class CoreSelection extends Activity implements
|
||||
public final class CoreSelection extends Activity implements
|
||||
AdapterView.OnItemClickListener {
|
||||
private IconAdapter<ModuleWrapper> adapter;
|
||||
static private final String TAG = "CoreSelection";
|
||||
@ -41,7 +41,7 @@ public class CoreSelection extends Activity implements
|
||||
list.setAdapter(adapter);
|
||||
list.setOnItemClickListener(this);
|
||||
|
||||
setTitle("Select Libretro core");
|
||||
setTitle(R.string.select_libretro_core);
|
||||
|
||||
// Populate the list
|
||||
final String modulePath = MainMenuActivity.getInstance()
|
||||
|
@ -22,14 +22,14 @@ public class DirectoryActivity extends Activity implements
|
||||
public String path;
|
||||
public boolean parentIsBack;
|
||||
|
||||
public BackStackItem(String aPath, boolean aParentIsBack) {
|
||||
path = aPath;
|
||||
parentIsBack = aParentIsBack;
|
||||
public BackStackItem(String path, boolean parentIsBack) {
|
||||
this.path = path;
|
||||
this.parentIsBack = parentIsBack;
|
||||
}
|
||||
|
||||
private BackStackItem(Parcel aIn) {
|
||||
path = aIn.readString();
|
||||
parentIsBack = aIn.readInt() != 0;
|
||||
private BackStackItem(Parcel in) {
|
||||
this.path = in.readString();
|
||||
this.parentIsBack = in.readInt() != 0;
|
||||
}
|
||||
|
||||
public int describeContents() {
|
||||
@ -87,7 +87,7 @@ public class DirectoryActivity extends Activity implements
|
||||
backStack = savedInstanceState.getParcelableArrayList("BACKSTACK");
|
||||
}
|
||||
|
||||
if (backStack == null || backStack.size() == 0) {
|
||||
if (backStack == null || backStack.isEmpty()) {
|
||||
backStack = new ArrayList<BackStackItem>();
|
||||
String startPath = (startDirectory == null || startDirectory.isEmpty()) ? Environment
|
||||
.getExternalStorageDirectory().getPath() : startDirectory;
|
||||
@ -112,7 +112,7 @@ public class DirectoryActivity extends Activity implements
|
||||
editor.commit();
|
||||
}
|
||||
|
||||
Intent intent = new Intent();
|
||||
Intent intent = new Intent();
|
||||
intent.putExtra("PATH", path);
|
||||
setResult(RESULT_OK, intent);
|
||||
finish();
|
||||
|
@ -3,6 +3,8 @@ package org.retroarch.browser;
|
||||
import javax.microedition.khronos.egl.EGLConfig;
|
||||
import javax.microedition.khronos.opengles.GL10;
|
||||
|
||||
import org.retroarch.R;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.SharedPreferences;
|
||||
import android.opengl.GLES20;
|
||||
@ -12,7 +14,7 @@ import android.util.Log;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.Toast;
|
||||
|
||||
public class DisplayRefreshRateTest extends Activity {
|
||||
public final class DisplayRefreshRateTest extends Activity {
|
||||
|
||||
private class Renderer implements GLSurfaceView.Renderer {
|
||||
private static final String TAG = "GLESRenderer";
|
||||
@ -105,12 +107,12 @@ public class DisplayRefreshRateTest extends Activity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
Toast.makeText(this, "Touch the screen with your fingers for more accurate measurements.", Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(this, R.string.touch_screen_with_fingers, Toast.LENGTH_LONG).show();
|
||||
surfaceView = new GLSurfaceView(this);
|
||||
surfaceView.setEGLContextClientVersion(2);
|
||||
surfaceView.setRenderer(new Renderer(this));
|
||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
||||
setTitle("Refresh rate calibration");
|
||||
setTitle(R.string.refresh_rate_calibration);
|
||||
setContentView(surfaceView);
|
||||
}
|
||||
|
||||
@ -118,7 +120,7 @@ public class DisplayRefreshRateTest extends Activity {
|
||||
protected void onDestroy() {
|
||||
SharedPreferences prefs = MainMenuActivity.getPreferences();
|
||||
String fps = prefs.getString("video_refresh_rate", "ERROR");
|
||||
Toast.makeText(this, "Refresh rate measured to: " + fps + " Hz.", Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(this, String.format(getString(R.string.refresh_rate_measured_to), fps), Toast.LENGTH_LONG).show();
|
||||
super.onDestroy();
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ import org.retroarch.R;
|
||||
|
||||
import android.graphics.drawable.Drawable;
|
||||
|
||||
class FileWrapper implements IconAdapterItem {
|
||||
final class FileWrapper implements IconAdapterItem {
|
||||
public final File file;
|
||||
public final boolean parentItem;
|
||||
public final boolean dirSelectItem;
|
||||
|
@ -6,7 +6,7 @@ import android.os.Bundle;
|
||||
import android.preference.PreferenceActivity;
|
||||
import android.preference.PreferenceManager;
|
||||
|
||||
public class HelpActivity extends PreferenceActivity {
|
||||
public final class HelpActivity extends PreferenceActivity {
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
|
@ -17,7 +17,7 @@ import android.widget.AdapterView;
|
||||
import android.widget.ListView;
|
||||
import android.widget.Toast;
|
||||
|
||||
public class HistorySelection extends Activity implements
|
||||
public final class HistorySelection extends Activity implements
|
||||
AdapterView.OnItemClickListener {
|
||||
|
||||
private IconAdapter<HistoryWrapper> adapter;
|
||||
@ -34,7 +34,7 @@ public class HistorySelection extends Activity implements
|
||||
list.setAdapter(adapter);
|
||||
list.setOnItemClickListener(this);
|
||||
|
||||
setTitle("Recently played games");
|
||||
setTitle(R.string.recently_played_games);
|
||||
|
||||
File history = new File(getApplicationInfo().dataDir, "retroarch-history.txt");
|
||||
|
||||
@ -71,8 +71,7 @@ public class HistorySelection extends Activity implements
|
||||
|
||||
MainMenuActivity.getInstance().updateConfigFile();
|
||||
|
||||
Toast.makeText(this, "Loading: [" + gamePath + "] ...",
|
||||
Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(this, String.format(getString(R.string.loading_gamepath), gamePath), Toast.LENGTH_SHORT).show();
|
||||
myIntent = new Intent(this, RetroActivity.class);
|
||||
myIntent.putExtra("ROM", gamePath);
|
||||
myIntent.putExtra("LIBRETRO", corePath);
|
||||
|
@ -4,7 +4,7 @@ import java.io.File;
|
||||
|
||||
import android.graphics.drawable.Drawable;
|
||||
|
||||
public class HistoryWrapper implements IconAdapterItem {
|
||||
public final class HistoryWrapper implements IconAdapterItem {
|
||||
|
||||
private String gamePath;
|
||||
private String gamePathShort;
|
||||
|
@ -5,7 +5,7 @@ import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
|
||||
public class IMEActivity extends Activity {
|
||||
public final class IMEActivity extends Activity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
@ -16,7 +16,7 @@ interface IconAdapterItem {
|
||||
public abstract Drawable getIconDrawable();
|
||||
}
|
||||
|
||||
class IconAdapter<T extends IconAdapterItem> extends ArrayAdapter<T> {
|
||||
final class IconAdapter<T extends IconAdapterItem> extends ArrayAdapter<T> {
|
||||
private final int layout;
|
||||
|
||||
public IconAdapter(Activity aContext, int aLayout) {
|
||||
|
@ -14,7 +14,7 @@ import android.widget.EditText;
|
||||
import android.widget.ListView;
|
||||
import org.retroarch.R;
|
||||
|
||||
class KeyBindEditText extends EditText
|
||||
final class KeyBindEditText extends EditText
|
||||
{
|
||||
KeyBindPreference pref;
|
||||
public KeyBindEditText(Context context, AttributeSet attrs) {
|
||||
@ -39,15 +39,17 @@ class KeyBindEditText extends EditText
|
||||
}
|
||||
}
|
||||
|
||||
class KeyBindPreference extends DialogPreference implements View.OnKeyListener, AdapterView.OnItemClickListener, LayoutInflater.Factory {
|
||||
final class KeyBindPreference extends DialogPreference implements View.OnKeyListener, AdapterView.OnItemClickListener, LayoutInflater.Factory {
|
||||
private int key_bind_code;
|
||||
private boolean grabKeyCode = false;
|
||||
KeyBindEditText keyText;
|
||||
private String[] key_labels;
|
||||
private final int DEFAULT_KEYCODE = 0;
|
||||
private final Context context;
|
||||
|
||||
public KeyBindPreference(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
this.context = context;
|
||||
key_labels = getContext().getResources().getStringArray(R.array.key_bind_values);
|
||||
}
|
||||
|
||||
@ -57,7 +59,7 @@ class KeyBindPreference extends DialogPreference implements View.OnKeyListener,
|
||||
{
|
||||
grabKeyCode = false;
|
||||
key_bind_code = keyCode;
|
||||
keyText.setText("Current: " + key_labels[key_bind_code]);
|
||||
keyText.setText(String.format(context.getString(R.string.current_binding), key_labels[key_bind_code]));
|
||||
}
|
||||
}
|
||||
|
||||
@ -84,7 +86,7 @@ class KeyBindPreference extends DialogPreference implements View.OnKeyListener,
|
||||
((Button) view.findViewById(R.id.key_bind_detect)).setOnClickListener(new View.OnClickListener() {
|
||||
public void onClick(View v) {
|
||||
grabKeyCode = true;
|
||||
keyText.setText("Press key to use");
|
||||
keyText.setText(R.string.press_key_to_use);
|
||||
keyText.requestFocus();
|
||||
}
|
||||
});
|
||||
|
@ -28,7 +28,7 @@ import android.view.Display;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.Toast;
|
||||
|
||||
public class MainMenuActivity extends PreferenceActivity {
|
||||
public final class MainMenuActivity extends PreferenceActivity {
|
||||
private static MainMenuActivity instance = null;
|
||||
static private final int ACTIVITY_LOAD_ROM = 0;
|
||||
static private final String TAG = "MainMenu";
|
||||
@ -80,7 +80,7 @@ public class MainMenuActivity extends PreferenceActivity {
|
||||
SharedPreferences prefs = getPreferences();
|
||||
|
||||
libretro_path = prefs.getString("libretro_path", getApplicationInfo().nativeLibraryDir);
|
||||
libretro_name = prefs.getString("libretro_name", "No core");
|
||||
libretro_name = prefs.getString("libretro_name", getString(R.string.no_core));
|
||||
|
||||
refreshPreferenceScreen();
|
||||
|
||||
@ -94,9 +94,8 @@ public class MainMenuActivity extends PreferenceActivity {
|
||||
|
||||
if (!detectDevice(false)) {
|
||||
AlertDialog.Builder alert = new AlertDialog.Builder(this)
|
||||
.setTitle("Welcome to RetroArch")
|
||||
.setMessage(
|
||||
"This is your first time starting up RetroArch. RetroArch will now be preconfigured for the best possible gameplay experience.")
|
||||
.setTitle(R.string.welcome_to_retroarch)
|
||||
.setMessage(R.string.welcome_to_retroarch_desc)
|
||||
.setPositiveButton("OK", null);
|
||||
alert.show();
|
||||
}
|
||||
@ -360,7 +359,7 @@ public class MainMenuActivity extends PreferenceActivity {
|
||||
|
||||
// Refactor this entire mess and make this usable for per-core config
|
||||
if (android.os.Build.VERSION.SDK_INT >= 17 &&
|
||||
prefs.getBoolean("audio_latency_auto", true) == true) {
|
||||
prefs.getBoolean("audio_latency_auto", true)) {
|
||||
int buffersize = getLowLatencyBufferSize();
|
||||
|
||||
boolean lowLatency = hasLowLatencyAudio();
|
||||
@ -475,11 +474,11 @@ public class MainMenuActivity extends PreferenceActivity {
|
||||
.getApplicationInfo().dataDir + "/retroarch-history.txt");
|
||||
|
||||
for (int i = 1; i <= 4; i++) {
|
||||
final String btns[] = { "up", "down", "left", "right", "a", "b",
|
||||
final String[] btns = { "up", "down", "left", "right", "a", "b",
|
||||
"x", "y", "start", "select", "l", "r", "l2", "r2", "l3",
|
||||
"r3" };
|
||||
for (String b : btns) {
|
||||
String p = "input_player" + String.valueOf(i) + "_" + b
|
||||
String p = "input_player" + i + "_" + b
|
||||
+ "_btn";
|
||||
config.setInt(p, prefs.getInt(p, 0));
|
||||
}
|
||||
@ -493,8 +492,7 @@ public class MainMenuActivity extends PreferenceActivity {
|
||||
}
|
||||
|
||||
private byte[] loadAsset(String asset) throws IOException {
|
||||
String path = asset;
|
||||
InputStream stream = getAssets().open(path);
|
||||
InputStream stream = getAssets().open(asset);
|
||||
int len = stream.available();
|
||||
byte[] buf = new byte[len];
|
||||
stream.read(buf, 0, len);
|
||||
@ -544,8 +542,7 @@ public class MainMenuActivity extends PreferenceActivity {
|
||||
try {
|
||||
String dataDir = getApplicationInfo().dataDir;
|
||||
File cacheVersion = new File(dataDir, ".cacheversion");
|
||||
if (cacheVersion != null && cacheVersion.isFile()
|
||||
&& cacheVersion.canRead() && cacheVersion.canWrite()) {
|
||||
if (cacheVersion.isFile() && cacheVersion.canRead() && cacheVersion.canWrite()) {
|
||||
DataInputStream cacheStream = new DataInputStream(
|
||||
new FileInputStream(cacheVersion));
|
||||
|
||||
@ -655,31 +652,23 @@ public class MainMenuActivity extends PreferenceActivity {
|
||||
boolean detectDevice(boolean show_dialog) {
|
||||
boolean retval = false;
|
||||
|
||||
boolean mentionPlayStore = !android.os.Build.MODEL
|
||||
.equals("OUYA Console");
|
||||
final String message = "The ideal configuration options for your device will now be preconfigured.\n\nNOTE: For optimal performance, turn off Google Account sync, "
|
||||
+ (mentionPlayStore ? "Google Play Store auto-updates, " : "")
|
||||
+ "GPS and Wi-Fi in your Android settings menu.";
|
||||
final boolean mentionPlayStore = !android.os.Build.MODEL.equals("OUYA Console");
|
||||
final String message = (mentionPlayStore ? getString(R.string.detect_device_msg_general) : getString(R.string.detect_device_msg_ouya));
|
||||
|
||||
Log.i("Device MODEL", android.os.Build.MODEL);
|
||||
if (android.os.Build.MODEL.equals("SHIELD")) {
|
||||
AlertDialog.Builder alert = new AlertDialog.Builder(this)
|
||||
.setTitle("NVidia Shield detected")
|
||||
.setTitle(R.string.nvidia_shield_detected)
|
||||
.setMessage(message)
|
||||
.setPositiveButton("OK",
|
||||
.setPositiveButton(R.string.ok,
|
||||
new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog,
|
||||
int which) {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
SharedPreferences prefs = getPreferences();
|
||||
SharedPreferences.Editor edit = prefs
|
||||
.edit();
|
||||
edit.putString("video_refresh_rate", Double
|
||||
.valueOf(60.00d).toString());
|
||||
edit.putBoolean("input_overlay_enable",
|
||||
false);
|
||||
edit.putBoolean("input_autodetect_enable",
|
||||
true);
|
||||
SharedPreferences.Editor edit = prefs.edit();
|
||||
edit.putString("video_refresh_rate", Double.toString(60.00d));
|
||||
edit.putBoolean("input_overlay_enable", false);
|
||||
edit.putBoolean("input_autodetect_enable", true);
|
||||
edit.putString("audio_latency", "64");
|
||||
edit.putBoolean("audio_latency_auto", true);
|
||||
edit.commit();
|
||||
@ -689,20 +678,16 @@ public class MainMenuActivity extends PreferenceActivity {
|
||||
retval = true;
|
||||
} else if (android.os.Build.MODEL.equals("GAMEMID_BT")) {
|
||||
AlertDialog.Builder alert = new AlertDialog.Builder(this)
|
||||
.setTitle("GameMID detected")
|
||||
.setTitle(R.string.game_mid_detected)
|
||||
.setMessage(message)
|
||||
.setPositiveButton("OK",
|
||||
.setPositiveButton(R.string.ok,
|
||||
new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog,
|
||||
int which) {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
SharedPreferences prefs = getPreferences();
|
||||
SharedPreferences.Editor edit = prefs
|
||||
.edit();
|
||||
edit.putBoolean("input_overlay_enable",
|
||||
false);
|
||||
edit.putBoolean("input_autodetect_enable",
|
||||
true);
|
||||
SharedPreferences.Editor edit = prefs.edit();
|
||||
edit.putBoolean("input_overlay_enable", false);
|
||||
edit.putBoolean("input_autodetect_enable", true);
|
||||
edit.putString("audio_latency", "160");
|
||||
edit.putBoolean("audio_latency_auto", false);
|
||||
edit.commit();
|
||||
@ -712,20 +697,16 @@ public class MainMenuActivity extends PreferenceActivity {
|
||||
retval = true;
|
||||
} else if (android.os.Build.MODEL.equals("OUYA Console")) {
|
||||
AlertDialog.Builder alert = new AlertDialog.Builder(this)
|
||||
.setTitle("OUYA detected")
|
||||
.setTitle(R.string.ouya_detected)
|
||||
.setMessage(message)
|
||||
.setPositiveButton("OK",
|
||||
.setPositiveButton(R.string.ok,
|
||||
new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog,
|
||||
int which) {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
SharedPreferences prefs = getPreferences();
|
||||
SharedPreferences.Editor edit = prefs
|
||||
.edit();
|
||||
edit.putBoolean("input_overlay_enable",
|
||||
false);
|
||||
edit.putBoolean("input_autodetect_enable",
|
||||
true);
|
||||
SharedPreferences.Editor edit = prefs.edit();
|
||||
edit.putBoolean("input_overlay_enable", false);
|
||||
edit.putBoolean("input_autodetect_enable", true);
|
||||
edit.putString("audio_latency", "64");
|
||||
edit.putBoolean("audio_latency_auto", true);
|
||||
edit.commit();
|
||||
@ -735,23 +716,18 @@ public class MainMenuActivity extends PreferenceActivity {
|
||||
retval = true;
|
||||
} else if (android.os.Build.MODEL.equals("R800x")) {
|
||||
AlertDialog.Builder alert = new AlertDialog.Builder(this)
|
||||
.setTitle("Xperia Play detected")
|
||||
.setTitle(R.string.xperia_play_detected)
|
||||
.setMessage(message)
|
||||
.setPositiveButton("OK",
|
||||
.setPositiveButton(R.string.ok,
|
||||
new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog,
|
||||
int which) {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
SharedPreferences prefs = getPreferences();
|
||||
SharedPreferences.Editor edit = prefs
|
||||
.edit();
|
||||
SharedPreferences.Editor edit = prefs.edit();
|
||||
edit.putBoolean("video_threaded", false);
|
||||
edit.putBoolean("input_overlay_enable",
|
||||
false);
|
||||
edit.putBoolean("input_autodetect_enable",
|
||||
true);
|
||||
edit.putString("video_refresh_rate", Double
|
||||
.valueOf(59.19132938771038).toString());
|
||||
edit.putBoolean("input_overlay_enable", false);
|
||||
edit.putBoolean("input_autodetect_enable", true);
|
||||
edit.putString("video_refresh_rate", Double.toString(59.19132938771038));
|
||||
edit.putString("audio_latency", "128");
|
||||
edit.putBoolean("audio_latency_auto", false);
|
||||
edit.commit();
|
||||
@ -761,18 +737,15 @@ public class MainMenuActivity extends PreferenceActivity {
|
||||
retval = true;
|
||||
} else if (android.os.Build.ID.equals("JSS15J")) {
|
||||
AlertDialog.Builder alert = new AlertDialog.Builder(this)
|
||||
.setTitle("Nexus 7 2013 detected")
|
||||
.setTitle(R.string.nexus_7_2013_detected)
|
||||
.setMessage(message)
|
||||
.setPositiveButton("OK",
|
||||
.setPositiveButton(R.string.ok,
|
||||
new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog,
|
||||
int which) {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
SharedPreferences prefs = getPreferences();
|
||||
SharedPreferences.Editor edit = prefs
|
||||
.edit();
|
||||
edit.putString("video_refresh_rate", Double
|
||||
.valueOf(59.65).toString());
|
||||
SharedPreferences.Editor edit = prefs.edit();
|
||||
edit.putString("video_refresh_rate", Double.toString(59.65));
|
||||
edit.putString("audio_latency", "64");
|
||||
edit.putBoolean("audio_latency_auto", false);
|
||||
edit.commit();
|
||||
@ -783,10 +756,7 @@ public class MainMenuActivity extends PreferenceActivity {
|
||||
}
|
||||
|
||||
if (show_dialog) {
|
||||
Toast.makeText(
|
||||
this,
|
||||
"Device either not detected in list or doesn't have any optimal settings in our database.",
|
||||
Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(this, R.string.no_optimal_settings, Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
|
||||
refreshPreferenceScreen();
|
||||
@ -803,12 +773,10 @@ public class MainMenuActivity extends PreferenceActivity {
|
||||
public void startActivity(Intent intent) {
|
||||
if (intent.getComponent().getClassName()
|
||||
.equals("org.retroarch.browser.ROMActivity")) {
|
||||
if (new File(libretro_path).isDirectory() == false) {
|
||||
if (!new File(libretro_path).isDirectory()) {
|
||||
super.startActivityForResult(intent, ACTIVITY_LOAD_ROM);
|
||||
} else {
|
||||
Toast.makeText(this,
|
||||
"Go to 'Load Core' and select a core first.",
|
||||
Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(this, R.string.load_a_core_first, Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
} else {
|
||||
super.startActivity(intent);
|
||||
@ -821,18 +789,12 @@ public class MainMenuActivity extends PreferenceActivity {
|
||||
case ACTIVITY_LOAD_ROM: {
|
||||
if (data.getStringExtra("PATH") != null) {
|
||||
updateConfigFile();
|
||||
Intent myIntent;
|
||||
String current_ime = Settings.Secure.getString(
|
||||
getContentResolver(),
|
||||
Settings.Secure.DEFAULT_INPUT_METHOD);
|
||||
Toast.makeText(this,
|
||||
"Loading: [" + data.getStringExtra("PATH") + "]...",
|
||||
Toast.LENGTH_SHORT).show();
|
||||
myIntent = new Intent(this, RetroActivity.class);
|
||||
String current_ime = Settings.Secure.getString(getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD);
|
||||
Toast.makeText(this,String.format(getString(R.string.loading_data), data.getStringExtra("PATH")), Toast.LENGTH_SHORT).show();
|
||||
Intent myIntent = new Intent(this, RetroActivity.class);
|
||||
myIntent.putExtra("ROM", data.getStringExtra("PATH"));
|
||||
myIntent.putExtra("LIBRETRO", libretro_path);
|
||||
myIntent.putExtra("CONFIGFILE",
|
||||
getDefaultConfigPath());
|
||||
myIntent.putExtra("CONFIGFILE", getDefaultConfigPath());
|
||||
myIntent.putExtra("IME", current_ime);
|
||||
startActivity(myIntent);
|
||||
}
|
||||
@ -850,10 +812,8 @@ public class MainMenuActivity extends PreferenceActivity {
|
||||
private void loadRomExternal(String rom, String core) {
|
||||
updateConfigFile();
|
||||
Intent myIntent = new Intent(this, RetroActivity.class);
|
||||
String current_ime = Settings.Secure.getString(getContentResolver(),
|
||||
Settings.Secure.DEFAULT_INPUT_METHOD);
|
||||
Toast.makeText(this, "Loading: [" + rom + "]...", Toast.LENGTH_SHORT)
|
||||
.show();
|
||||
String current_ime = Settings.Secure.getString(getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD);
|
||||
Toast.makeText(this, String.format(getString(R.string.loading_data), rom), Toast.LENGTH_SHORT).show();
|
||||
myIntent.putExtra("ROM", rom);
|
||||
myIntent.putExtra("LIBRETRO", core);
|
||||
myIntent.putExtra("CONFIGFILE", getDefaultConfigPath());
|
||||
|
@ -6,12 +6,12 @@ import java.io.IOException;
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
|
||||
class ModuleWrapper implements IconAdapterItem {
|
||||
final class ModuleWrapper implements IconAdapterItem {
|
||||
public final File file;
|
||||
private ConfigFile config;
|
||||
private final ConfigFile config;
|
||||
|
||||
public ModuleWrapper(Context aContext, File aFile, ConfigFile config) throws IOException {
|
||||
file = aFile;
|
||||
public ModuleWrapper(Context context, File file, ConfigFile config) throws IOException {
|
||||
this.file = file;
|
||||
this.config = config;
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@ import java.io.File;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
public class OverlayActivity extends DirectoryActivity {
|
||||
public final class OverlayActivity extends DirectoryActivity {
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
File overlayDir = new File(getBaseContext().getApplicationInfo().dataDir, "overlays");
|
||||
|
@ -5,7 +5,7 @@ import java.io.File;
|
||||
import android.content.SharedPreferences;
|
||||
import android.os.Bundle;
|
||||
|
||||
public class ROMActivity extends DirectoryActivity {
|
||||
public final class ROMActivity extends DirectoryActivity {
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
|
||||
|
@ -2,7 +2,7 @@ package org.retroarch.browser;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
public class ROMDirActivity extends DirectoryActivity {
|
||||
public final class ROMDirActivity extends DirectoryActivity {
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.setPathSettingKey("rgui_browser_directory");
|
||||
|
@ -1,5 +1,7 @@
|
||||
package org.retroarch.browser;
|
||||
|
||||
import org.retroarch.R;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
@ -8,7 +10,7 @@ import android.view.Display;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.Toast;
|
||||
|
||||
public class RefreshRateSetOS extends Activity {
|
||||
public final class RefreshRateSetOS extends Activity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
@ -22,7 +24,7 @@ public class RefreshRateSetOS extends Activity {
|
||||
edit.putString("video_refresh_rate", Double.valueOf(rate).toString());
|
||||
edit.commit();
|
||||
|
||||
Toast.makeText(this, "Using OS-reported refresh rate of: " + rate + " Hz.", Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(this, String.format(getString(R.string.using_os_reported_refresh_rate), rate), Toast.LENGTH_LONG).show();
|
||||
finish();
|
||||
}
|
||||
}
|
||||
|
@ -1,12 +1,14 @@
|
||||
package org.retroarch.browser;
|
||||
|
||||
import org.retroarch.R;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
import android.content.DialogInterface;
|
||||
import android.os.Bundle;
|
||||
import android.provider.Settings;
|
||||
|
||||
public class ReportIME extends Activity {
|
||||
public final class ReportIME extends Activity {
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
@ -16,7 +18,7 @@ public class ReportIME extends Activity {
|
||||
final Activity ctx = this;
|
||||
AlertDialog.Builder dialog = new AlertDialog.Builder(this)
|
||||
.setMessage(current_ime)
|
||||
.setNeutralButton("Close",
|
||||
.setNeutralButton(R.string.close,
|
||||
new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog,
|
||||
|
@ -4,10 +4,7 @@ import android.app.NativeActivity;
|
||||
import android.os.Bundle;
|
||||
import android.widget.Toast;
|
||||
|
||||
public class RetroActivity extends NativeActivity {
|
||||
public RetroActivity() {
|
||||
super();
|
||||
}
|
||||
public final class RetroActivity extends NativeActivity {
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstance) {
|
||||
|
@ -5,7 +5,7 @@ import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.provider.Settings;
|
||||
|
||||
public class RetroTVMode extends Activity {
|
||||
public final class RetroTVMode extends Activity {
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
|
@ -2,7 +2,7 @@ package org.retroarch.browser;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
public class SRMDirActivity extends DirectoryActivity {
|
||||
public final class SRMDirActivity extends DirectoryActivity {
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.setPathSettingKey("savefile_directory");
|
||||
|
@ -10,7 +10,7 @@ import android.view.View;
|
||||
import android.widget.SeekBar;
|
||||
import android.widget.TextView;
|
||||
|
||||
public class SeekbarPreference extends DialogPreference implements SeekBar.OnSeekBarChangeListener {
|
||||
public final class SeekbarPreference extends DialogPreference implements SeekBar.OnSeekBarChangeListener {
|
||||
float seek_value;
|
||||
SeekBar bar;
|
||||
TextView text;
|
||||
@ -29,7 +29,7 @@ public class SeekbarPreference extends DialogPreference implements SeekBar.OnSee
|
||||
seek_value = getPersistedFloat(1.0f);
|
||||
int prog = (int) (seek_value * 100);
|
||||
bar.setProgress(prog);
|
||||
text.setText(String.valueOf(prog) + "%");
|
||||
text.setText(prog + "%");
|
||||
bar.setOnSeekBarChangeListener(this);
|
||||
return view;
|
||||
}
|
||||
@ -46,7 +46,7 @@ public class SeekbarPreference extends DialogPreference implements SeekBar.OnSee
|
||||
@Override
|
||||
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
|
||||
seek_value = (float) progress / 100.0f;
|
||||
text.setText(String.valueOf((int)(seek_value * 100)) + "%");
|
||||
text.setText((int) (seek_value * 100) + "%");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -4,7 +4,7 @@ import java.io.File;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
public class ShaderActivity extends DirectoryActivity {
|
||||
public final class ShaderActivity extends DirectoryActivity {
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
File shaderDir = new File(getBaseContext().getApplicationInfo().dataDir, "shaders_glsl");
|
||||
|
@ -2,7 +2,7 @@ package org.retroarch.browser;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
public class StateDirActivity extends DirectoryActivity {
|
||||
public final class StateDirActivity extends DirectoryActivity {
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.setPathSettingKey("savestate_directory");
|
||||
|
@ -2,7 +2,7 @@ package org.retroarch.browser;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
public class SystemDirActivity extends DirectoryActivity {
|
||||
public final class SystemDirActivity extends DirectoryActivity {
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.setPathSettingKey("system_directory");
|
||||
|
Loading…
x
Reference in New Issue
Block a user