<!--
  ~ Copyright 2018 The app Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:android="http://schemas.android.com/apk/res/android">
    <Preference
        app:title="@string/settings_game_directories"
        app:summary="@string/settings_summary_game_directories"
        app:iconSpaceReserved="false">
        <intent
            android:action="android.intent.action.VIEW"
            android:targetClass="com.github.stenzek.duckstation.GameDirectoriesActivity"
            android:targetPackage="com.github.stenzek.duckstation" />
    </Preference>
    <ListPreference
        app:key="Main/EmulationSpeed"
        app:title="@string/settings_emulation_speed"
        app:entries="@array/settings_emulation_speed_entries"
        app:entryValues="@array/settings_emulation_speed_values"
        app:defaultValue="1.0"
        app:useSimpleSummaryProvider="true"
        app:iconSpaceReserved="false" />
    <ListPreference
        app:key="Main/FastForwardSpeed"
        app:title="@string/settings_fast_forward_speed"
        app:entries="@array/settings_emulation_speed_entries"
        app:entryValues="@array/settings_emulation_speed_values"
        app:defaultValue="0.0"
        app:useSimpleSummaryProvider="true"
        app:iconSpaceReserved="false" />
    <ListPreference
        app:key="Main/EmulationScreenOrientation"
        app:title="@string/settings_emulation_screen_orientation"
        app:entries="@array/settings_emulation_screen_orientation_entries"
        app:entryValues="@array/settings_emulation_screen_orientation_values"
        app:defaultValue="unspecified"
        app:useSimpleSummaryProvider="true"
        app:iconSpaceReserved="false" />
    <SwitchPreferenceCompat
        app:key="Main/SaveStateOnExit"
        app:title="@string/settings_save_state_on_exit"
        app:defaultValue="true"
        app:summary="@string/settings_summary_save_state_on_exit"
        app:iconSpaceReserved="false" />
    <SwitchPreferenceCompat
        app:key="Main/PauseOnMenu"
        app:title="@string/settings_pause_when_menu_opened"
        app:defaultValue="false"
        app:summary="@string/settings_summary_pause_when_menu_opened"
        app:iconSpaceReserved="false" />
    <ListPreference
        app:key="GPU/Renderer"
        app:title="@string/settings_gpu_renderer"
        app:entries="@array/gpu_renderer_entries"
        app:entryValues="@array/gpu_renderer_values"
        app:defaultValue="OpenGL"
        app:useSimpleSummaryProvider="true"
        app:iconSpaceReserved="false" />
    <ListPreference
        app:key="Main/Language"
        app:title="@string/settings_language"
        app:defaultValue="none"
        app:entries="@array/settings_language_entries"
        app:entryValues="@array/settings_language_values"
        app:useSimpleSummaryProvider="true"
        app:iconSpaceReserved="false" />
    <ListPreference
        app:key="Main/Theme"
        app:title="@string/settings_theme"
        app:entries="@array/settings_theme_entries"
        app:entryValues="@array/settings_theme_values"
        app:defaultValue="follow_system"
        app:useSimpleSummaryProvider="true"
        app:iconSpaceReserved="false" />

</PreferenceScreen>
