9196 Commits

Author SHA1 Message Date
FearlessTobi
7bd24c73f5 android: Make adjustScale reflect changes without closing the dialog 2021-04-23 22:38:29 -07:00
FearlessTobi
242e3022d1 android: Clarify the warning in the Debug tab 2021-04-23 22:38:29 -07:00
FearlessTobi
fed4c804fe android: Enable audio stretching by default
It helps eliminate stutter and won't have a huge perf penalty, hopefully.
2021-04-23 22:38:29 -07:00
zhupengfei
2f0914c392 gl_shader_util: Specify default precision for uimage2D
Otherwise, this causes the application to crash when compiling any shader, on both devices I tested.
2021-04-23 22:38:29 -07:00
FearlessTobi
e932eb4dc2 android: Add game region to the GameDatabase 2021-04-23 22:38:29 -07:00
FearlessTobi
1e9d18d024 android: Remove unused JNI functions and use better names for game icon variables 2021-04-23 22:38:29 -07:00
FearlessTobi
db09b31479 android/settings: Make background color match the rest of the app 2021-04-23 22:38:29 -07:00
FearlessTobi
296fd21b6a styles: Use Appcompat instead of MaterialComponents in order to avoid various issues
Fixes the AppBar being black in settings and emulation when using the dark theme.
(Dolphin does the same.)

Also cleans up our styles a bit.
2021-04-23 22:38:29 -07:00
FearlessTobi
844e609f87 android: Fix the frame limiter
It was erroneously using the wrong config section and variable type.
2021-04-23 22:38:29 -07:00
BreadFish64
93f0757b25 video_core: disable depth/stencil texture download on OpenGL ES 2021-04-23 22:38:29 -07:00
BreadFish64
a726715a93 android: disallow split screen 2021-04-23 22:38:29 -07:00
FearlessTobi
e6d5591eef android/settings: Move VSync option to debug
Dolphin does the same and there's no real reason the users should mess with it.
2021-04-23 22:38:29 -07:00
FearlessTobi
d2f0aae455 android/NativeLibrary: Use Html.FROM_HTML_MODE_LEGACY
Fixes a deprecation warning.
2021-04-23 22:38:29 -07:00
FearlessTobi
7179268c6a android: Make more Strings translatable 2021-04-23 22:38:29 -07:00
FearlessTobi
acfb45f091 android: Fix the menu animations
Turns out those unused methods were actually used for something.
2021-04-23 22:38:29 -07:00
FearlessTobi
4707d92831 AndroidManifest: Workaround the crash when changing Theme while in settings
Essentially extends upon https://github.com/dolphin-emu/dolphin/pull/8288.

Original description:
"The "correct way" would be to fully save and restore data on onSaveInstanceState and restore it back on onCreate. I tried to do that first.
As there is various conflicts with doing this without some form of refactor due to how the lifecycle diverges and is baked-in to the application, ignoring Activity recreation on orientation change should work well enough and we don't draw anything different in settings on landscape mode or ui mode anyway."
2021-04-23 22:38:29 -07:00
FearlessTobi
43b03ff53d android: Show a hint when the gamelist is empty 2021-04-23 22:38:29 -07:00
FearlessTobi
3f8c1febfc Make the gamelist look nicer and indicate files with a wrong extension visually 2021-04-23 22:38:29 -07:00
FearlessTobi
988e4dac67 android: Change plus icon to folder icon because we don't support multiple directories 2021-04-23 22:38:29 -07:00
FearlessTobi
783b9b0a7f android: Add realtime audio setting 2021-04-23 22:38:29 -07:00
FearlessTobi
1d9272fe99 audio_core: Add realtime audio 2021-04-23 22:38:29 -07:00
BreadFish64
c343263997 video_core: bump swap chain size for GLES to reduce bottleneck 2021-04-23 22:38:29 -07:00
BreadFish64
b6529e2759 video_core: implement optimized D24S8->RGBA8 reinterpreters 2021-04-23 22:38:29 -07:00
James Rowe
2f763bb77c Use immutable storage when available 2021-04-23 22:38:29 -07:00
BreadFish64
5eec390e6f android: disable OpenGL debug message again 2021-04-23 22:38:29 -07:00
BreadFish64
e19ce5ac73 android: fix opening settings menu in-game 2021-04-23 22:38:29 -07:00
SachinVin
63b3e8757c android: SettingsFragmentPresenter.java: correct the section used in debug tab
Fixes setting always showing the default value.
2021-04-23 22:38:29 -07:00
BreadFish64
5b1c4fe125 video_core: implement GLES depth/stencil downloads 2021-04-23 22:38:29 -07:00
FearlessTobi
f6312a22e4 android: Add debug tab 2021-04-23 22:38:29 -07:00
FearlessTobi
c95c064ae4 Optimize imports 2021-04-23 22:38:29 -07:00
FearlessTobi
433c741bb8 android: Complete the removal of ATV and address minor Linter warnings 2021-04-23 22:38:28 -07:00
FearlessTobi
68e390941e android: Remove obsolete AndroidTV mode and its resources 2021-04-23 22:38:28 -07:00
BreadFish64
b1bedc6a8b android: add texture filter setting 2021-04-23 22:38:28 -07:00
BreadFish64
9bd0f6ae56 android: Add StringSingleChoiceSetting 2021-04-23 22:38:28 -07:00
BreadFish64
f054b4de23 video_core: fix texture filters in GLES 2021-04-23 22:38:28 -07:00
zhupengfei
e9d69d1ac9 android/swkbd: Properly set uncancelable
When using a DialogFragment you have to set this property on the DialogFragment itself.
2021-04-23 22:38:28 -07:00
FearlessTobi
6c2a6d7e05 Android: Disable automatic backup
Since we don't have proper confuguration file of what to include/exclude
in the backup, this better be disabled because it will lead to unexpected
state. This will solve any issue that was keep hapenning even after fresh
install of the emulator until you manually clear the app data.

Original commit by mahdihijazi for Dolphin-emu.
2021-04-23 22:38:28 -07:00
FearlessTobi
7968deb7b7 build: Fix abiFilter 2021-04-23 22:38:28 -07:00
FearlessTobi
b63e84f70b jni/config: Set is_new_3ds to true by default 2021-04-23 22:38:28 -07:00
zhupengfei
b0a6bab618 res: Add Chinese (zh) translation 2021-04-23 22:38:28 -07:00
FearlessTobi
be1b9da7ee android/strings: Add German translation 2021-04-23 22:38:28 -07:00
FearlessTobi
d1065d066f Android: Reflect the settings that is being used by the emulator on the UI
Per-Game settings now load the settings in this order
1. Emulator Settings
2. Default Settings of the Game that we ship with Dolphin
3. Custom game settings the user have

where the later always overides the former in case of collision, then
we show that on the UI to make it clear to the user which settings being
used.

Original commit by mahdihijazi for Dolphin-emu.
2021-04-23 22:38:28 -07:00
FearlessTobi
24733e45d1 strings: Add the performance warning to the translatable strings 2021-04-23 22:38:28 -07:00
FearlessTobi
ccfd60ea91 Android: Fix custom game settings
Apparently there was a different section names used by the custom game
settings that caused Android to have those settings broken for
some sections like the graphics one. This adds the map between the generic
settings <> custom settings.

Original commit by mahdihijazi for Dolphin-emu.
2021-04-23 22:38:28 -07:00
FearlessTobi
37728bb9ab Android: Refactor the settings managemnt
1. Create Settings class the encaupslate the loading/saving of all settings
2. Decouple the logic of saving the settings into 3 different config files
from the UI code.
2021-04-23 22:38:28 -07:00
FearlessTobi
f6d77090b5 Android: Start structure the project around features instead of data types
This only moves the settings feature, the rest will be moved slowely later.

Original commit by mahdihijazi for Dolphin-emu.
2021-04-23 22:38:28 -07:00
zhupengfei
0ff5fdcda1 android/swkbd: Fix rotation crash
Create a new DialogFragment to manage the dialog's state.
Also replaced AlertDialog with the androidx one which arguably looks better.
2021-04-23 22:38:28 -07:00
FearlessTobi
42c5729f5c Clean up unused resources and resolve linter warnings 2021-04-23 22:38:28 -07:00
BreadFish64
b1e78a2f4e android/config: initialize cpu_clock_frequency
leaving it uninitialized broke some games for obvious reasons
2021-04-23 22:38:28 -07:00
BreadFish64
9442b74961 android: don't use ScopeAcquireContext in RunCitra
The context will be released when window is destroyed
2021-04-23 22:38:28 -07:00