9320 Commits

Author SHA1 Message Date
FearlessTobi
9d63568bc8 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-02-21 18:06:25 -05:00
FearlessTobi
54051c4981 android: Fix the frame limiter
It was erroneously using the wrong config section and variable type.
2021-02-21 18:06:25 -05:00
BreadFish64
d0897d6a76 video_core: disable depth/stencil texture download on OpenGL ES 2021-02-21 18:06:25 -05:00
BreadFish64
9e74cb82e0 android: disallow split screen 2021-02-21 18:06:25 -05:00
FearlessTobi
702e892768 android/settings: Move VSync option to debug
Dolphin does the same and there's no real reason the users should mess with it.
2021-02-21 18:06:25 -05:00
FearlessTobi
5a1f66e989 android/NativeLibrary: Use Html.FROM_HTML_MODE_LEGACY
Fixes a deprecation warning.
2021-02-21 18:06:25 -05:00
FearlessTobi
ae899aa0c3 android: Make more Strings translatable 2021-02-21 18:06:25 -05:00
FearlessTobi
d4325060b1 android: Fix the menu animations
Turns out those unused methods were actually used for something.
2021-02-21 18:06:25 -05:00
FearlessTobi
bcc5888173 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-02-21 18:06:25 -05:00
FearlessTobi
f0dde11030 android: Show a hint when the gamelist is empty 2021-02-21 18:06:25 -05:00
FearlessTobi
633bf381d7 Make the gamelist look nicer and indicate files with a wrong extension visually 2021-02-21 18:06:25 -05:00
FearlessTobi
53350e4e2f android: Change plus icon to folder icon because we don't support multiple directories 2021-02-21 18:06:25 -05:00
FearlessTobi
5b089d2bf5 android: Add realtime audio setting 2021-02-21 18:06:25 -05:00
FearlessTobi
60f5c05249 audio_core: Add realtime audio 2021-02-21 18:06:25 -05:00
BreadFish64
5b46854f1b video_core: bump swap chain size for GLES to reduce bottleneck 2021-02-21 18:06:25 -05:00
BreadFish64
375f72876b video_core: implement optimized D24S8->RGBA8 reinterpreters 2021-02-21 18:06:25 -05:00
James Rowe
23a0777228 Use immutable storage when available 2021-02-21 18:06:25 -05:00
BreadFish64
7d855f5d57 android: disable OpenGL debug message again 2021-02-21 18:06:25 -05:00
BreadFish64
a75cf4c68f android: fix opening settings menu in-game 2021-02-21 18:06:25 -05:00
SachinVin
47cfdc6fe0 android: SettingsFragmentPresenter.java: correct the section used in debug tab
Fixes setting always showing the default value.
2021-02-21 18:06:25 -05:00
BreadFish64
1a6697f6d3 video_core: implement GLES depth/stencil downloads 2021-02-21 18:06:25 -05:00
FearlessTobi
84a93c8731 android: Add debug tab 2021-02-21 18:06:25 -05:00
FearlessTobi
8c31c20c44 Optimize imports 2021-02-21 18:06:25 -05:00
FearlessTobi
c345cd1140 android: Complete the removal of ATV and address minor Linter warnings 2021-02-21 18:06:25 -05:00
FearlessTobi
8e6db57e03 android: Remove obsolete AndroidTV mode and its resources 2021-02-21 18:06:25 -05:00
BreadFish64
ed652a8f2f android: add texture filter setting 2021-02-21 18:06:25 -05:00
BreadFish64
d46ac82a2d android: Add StringSingleChoiceSetting 2021-02-21 18:06:25 -05:00
BreadFish64
fb56b0cc5c video_core: fix texture filters in GLES 2021-02-21 18:06:25 -05:00
zhupengfei
b6c2fb9408 android/swkbd: Properly set uncancelable
When using a DialogFragment you have to set this property on the DialogFragment itself.
2021-02-21 18:06:25 -05:00
FearlessTobi
a269380c35 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-02-21 18:06:25 -05:00
FearlessTobi
bc9be624b9 build: Fix abiFilter 2021-02-21 18:06:25 -05:00
FearlessTobi
4411f7b2c7 jni/config: Set is_new_3ds to true by default 2021-02-21 18:06:25 -05:00
zhupengfei
19e3eee3a5 res: Add Chinese (zh) translation 2021-02-21 18:06:25 -05:00
FearlessTobi
6133eaeb6e android/strings: Add German translation 2021-02-21 18:06:25 -05:00
FearlessTobi
e91631b324 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-02-21 18:06:25 -05:00
FearlessTobi
9e86f9aa76 strings: Add the performance warning to the translatable strings 2021-02-21 18:06:25 -05:00
FearlessTobi
676df9b7ad 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-02-21 18:06:25 -05:00
FearlessTobi
4c69eec56c 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-02-21 18:06:25 -05:00
FearlessTobi
747423fa66 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-02-21 18:06:25 -05:00
zhupengfei
7ebd646594 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-02-21 18:06:25 -05:00
FearlessTobi
84094a4107 Clean up unused resources and resolve linter warnings 2021-02-21 18:06:24 -05:00
BreadFish64
f24b87a89f android/config: initialize cpu_clock_frequency
leaving it uninitialized broke some games for obvious reasons
2021-02-21 18:06:24 -05:00
BreadFish64
c77132b064 android: don't use ScopeAcquireContext in RunCitra
The context will be released when window is destroyed
2021-02-21 18:06:24 -05:00
zhupengfei
38ce973787 Fix incorrect import due to library change 2021-02-21 18:06:24 -05:00
zhupengfei
042cca532a android: SoftwareKeyboard implementation 2021-02-21 18:06:24 -05:00
BreadFish64
b521a57f2f android/ndk_motion: remove ALooper_release from ndk_motion destructor
We didn't acquire the looper from another thread so this is not correct
2021-02-21 18:06:24 -05:00
BreadFish64
89db27199d android: jni cleanup 2021-02-21 18:06:24 -05:00
FearlessTobi
8f71a81ade Remove unused code 2021-02-21 18:06:24 -05:00
FearlessTobi
bf0cfe7755 Fix a bunch of issues found by the Linter and rename Dolphin functions to Citra 2021-02-21 18:06:24 -05:00
FearlessTobi
84642c98dd Android: Set up Day/Night mode for system-compatible optional dark theme
Original commit by TheRealPSV for Dolphin-emu.
2021-02-21 18:06:24 -05:00