Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Android] Change the settings menu a little more. Instead of the sett…
…ings being a single view with settings from all components being displayed, I have broken it into sections. This future-proofs the settings menu in the sense that it won't get cluttered before people start asking "Hey, shouldn't this be broken into sections?". As of this commit, it is broken into CPU Settings and Video Settings. I also simplified the code that is responsible for setting the valid CPU cores and video backends by simply making UI string arrays that get chosen, based on the platform the Android device is running on.
- Loading branch information
Showing
8 changed files
with
115 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,30 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" | ||
| > | ||
| <PreferenceCategory | ||
| android:summary="@string/settings" | ||
| android:title="@string/cpu_settings" | ||
| android:key="cpuprefcat"> | ||
| <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
|
||
| <!-- CPU Settings --> | ||
| <PreferenceScreen | ||
| android:title="@string/cpu_settings"> | ||
| <CheckBoxPreference | ||
| android:key="dualcorepref" | ||
| android:summary="@string/on_off" | ||
| android:title="@string/dual_core" /> | ||
| </PreferenceCategory> | ||
| <PreferenceCategory | ||
| android:summary="@string/settings" | ||
| android:title="@string/video_settings" | ||
| android:key="videoprefcat"> | ||
| android:key="dualCorePref" | ||
| android:summary="@string/on_off" | ||
| android:title="@string/dual_core" /> | ||
|
|
||
| <ListPreference | ||
| android:entries="@array/gpuOptions" | ||
| android:entryValues="@array/gpuValues" | ||
| android:key="gpupref" | ||
| android:summary="@string/video_backend_to_use" | ||
| android:title="@string/video_backend" /> | ||
| </PreferenceCategory> | ||
| android:key="cpuCorePref" | ||
| android:summary="@string/emu_core_to_use" | ||
| android:title="@string/cpu_core" /> | ||
|
|
||
| </PreferenceScreen> | ||
|
|
||
| <!-- Video Settings --> | ||
| <PreferenceScreen | ||
| android:title="@string/video_settings"> | ||
|
|
||
| <ListPreference | ||
| android:key="gpuPref" | ||
| android:summary="@string/video_backend_to_use" | ||
| android:title="@string/video_backend" /> | ||
|
|
||
| </PreferenceScreen> | ||
| </PreferenceScreen> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
|
|
||
| <!-- All lists for ListPreference keys/values are placed here --> | ||
| <resources> | ||
|
|
||
| <!-- CPU core selection - X86 --> | ||
| <string-array name="emuCoreEntriesX86" translatable="false"> | ||
| <item>@string/interpreter</item> | ||
| <item>@string/jit64_recompiler</item> | ||
| <item>@string/jitil_recompiler</item> | ||
| </string-array> | ||
| <string-array name="emuCoreValuesX86" translatable="false"> | ||
| <item>0</item> | ||
| <item>1</item> | ||
| <item>2</item> | ||
| </string-array> | ||
|
|
||
| <!-- CPU core selection - ARM --> | ||
| <string-array name="emuCoreEntriesARM" translatable="false"> | ||
| <item>@string/interpreter</item> | ||
| <item>@string/jit_arm_recompiler</item> | ||
| </string-array> | ||
| <string-array name="emuCoreValuesARM" translatable="false"> | ||
| <item>0</item> | ||
| <item>3</item> | ||
| </string-array> | ||
|
|
||
| <!-- CPU core selection - Other --> | ||
| <string-array name="emuCoreEntriesOther" translatable="false"> | ||
| <item>@string/interpreter</item> | ||
| </string-array> | ||
| <string-array name="emuCoreValuesOther" translatable="false"> | ||
| <item>0</item> | ||
| </string-array> | ||
|
|
||
|
|
||
| <!-- Video Backend Selection - Supports OpenGL ES 3 --> | ||
| <string-array name="videoBackendEntriesGLES3" translatable="false"> | ||
| <item>@string/software_renderer</item> | ||
| <item>@string/opengl_es3</item> | ||
| </string-array> | ||
| <string-array name="videoBackendValuesGLES3" translatable="false"> | ||
| <item>Software Renderer</item> | ||
| <item>OGL</item> | ||
| </string-array> | ||
|
|
||
| <!-- Video Backend Selection - No OpenGL ES 3 support --> | ||
| <string-array name="videoBackendEntriesNoGLES3"> | ||
| <item>@string/software_renderer</item> | ||
| </string-array> | ||
| <string-array name="videoBackendValuesNoGLES3"> | ||
| <item>Software Renderer</item> | ||
| </string-array> | ||
|
|
||
| </resources> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters