Henrik Rydgård
ef28920179
Android: Remove support for 32-bit x86 builds
2023-08-14 13:47:55 +02:00
Henrik Rydgård
aadb700505
Fix turning off VSync on Android, logic fix
2023-08-14 11:02:29 +02:00
Henrik Rydgård
ff6e118fff
Get rid of a lot of ifdefs around presentation mode. Instead, set things dynamically.
2023-08-14 11:02:29 +02:00
Henrik Rydgård
a84cb357dc
Comment fixes, adjust a couple of sleeps
2023-08-13 17:57:46 +02:00
Henrik Rydgård
7bb1914fd3
Add FrameTiming.cpp/h (with no real contents)
2023-08-13 17:57:43 +02:00
Henrik Rydgård
1ea11c233c
Remove "SwapBuffers" from the GraphicsContext interface.
...
Buildfixes
More buildfix
headless buildfix
One more buildfix
2023-08-11 01:57:02 +02:00
Henrik Rydgård
0477ba8c78
Core.cpp: Some slight simplifications
2023-08-10 17:15:56 +02:00
Henrik Rydgård
c6179c67e4
Remove from cmakelists and android.mk.
2023-08-10 12:02:10 +02:00
Henrik Rydgård
96506544b7
Just some random driveby code cleanup
2023-08-10 10:28:25 +02:00
Henrik Rydgård
bcae36d8cb
Merge NativeUpdate and NativeRender, we always call them together.
2023-08-07 22:50:57 +02:00
Henrik Rydgård
63cfe28f61
Implement color emoji support on Android
2023-08-06 15:14:29 +02:00
Henrik Rydgård
ea659319b2
Merge pull request #17852 from unknownbrackets/riscv-centralize
...
IR: centralize common parts of native backend
2023-08-06 10:54:53 +02:00
Unknown W. Brackets
691799a0ca
irjit: Centralize native jit compile dispatch.
2023-08-03 23:14:58 -07:00
Henrik Rydgård
9f6e67b17a
Move the debug overlay rendering out from EmuScreen into DebugOverlay.cpp
2023-08-02 14:58:22 +02:00
Henrik Rydgård
ffd5e57a20
Vulkan: Don't use multithreaded rendering if frames-in-flight is set to 1
...
It has no benefit, and loses by a few percent in simple benchmarking.
2023-08-01 21:08:07 +02:00
Unknown W. Brackets
f870271011
riscv: Spill registers more intelligently.
2023-07-30 14:24:12 -07:00
Henrik Rydgård
b118e25b6a
Vulkan: Make multithreaded rendering an option.
...
Multi-threaded rendering is good for smoothing out performance spikes
and increasing performance on low-power devices. However, the way we use
it it doesn't benefit latency (input lag) at all, rather the opposite.
So make it an option.
2023-07-23 22:06:01 +02:00
Henrik Rydgård
ab6e902fea
Make naett work on Android, UWP, Mac. Exclude on Linux
2023-07-21 10:28:31 +02:00
Henrik Rydgård
e2cc835c2b
Setup build for new file HTTPNaettRequest
2023-07-21 10:27:40 +02:00
Henrik Rydgård
7ae34f148a
Setup build for naett - a lightweight https wrapper
2023-07-21 10:27:40 +02:00
Henrik Rydgård
f13a07f19b
Break out Download and RequestManager into its own file
2023-07-21 10:27:40 +02:00
Henrik Rydgård
85f5136a81
Add a GetProperty query for the git version
2023-07-20 10:57:52 +02:00
Henrik Rydgård
4221a09edf
Increase the max size of rendered text, for Android devices with insane resolutions.
2023-07-17 13:32:15 +02:00
Henrik Rydgård
2537f76277
UI: Add a basic FileChooserChoice view
2023-07-16 12:14:40 +02:00
Henrik Rydgård
306be6e33e
Android: Simplify handling of dialog requests even more.
...
To protect against disappearing activities or whatever is causing the
lost value, I could make it static, but instead I just pack the two
values together into the requestCode.
Will hopefully help the main issue from #17683
2023-07-15 19:02:12 +02:00
Henrik Rydgård
c363cccc58
Java dialog requests: Simplify handling, more unique error codes
2023-07-15 12:24:00 +02:00
Henrik Rydgård
63144340f5
First-boot memstick screen: Attempt to fix some logic holes
...
This handles some cases better that I don't really see how they can
happen, but who knows. Intended to help #17683
2023-07-12 11:29:24 +02:00
Henrik Rydgård
d0b42705a0
Switch over to rc-client
2023-07-08 18:59:37 +02:00
Henrik Rydgård
1d49c9e910
Android: Clean up some joystick checks
2023-07-07 10:45:54 +02:00
Henrik Rydgård
f33660b033
Oops, deleted a line too much. Fixes a weird storage permission issue.
2023-07-06 21:48:39 +02:00
Henrik Rydgård
16efa1d877
Merge pull request #17672 from hrydgard/android-show-exceptions
...
Android: Show some Java exceptions as they happen
2023-07-06 20:24:06 +02:00
Henrik Rydgård
bc35c3341f
Allow putting a user string in reported java exceptions
2023-07-06 19:21:19 +02:00
Henrik Rydgård
9d877106d7
Android: Report various exceptions that we catch to the user if they happen
...
This can let users help debug some obscure cases.
2023-07-06 19:06:27 +02:00
Henrik Rydgård
e1060c80ff
Merge pull request #17671 from hrydgard/android-message-cleanup
...
Android string message cleanup
2023-07-06 19:06:14 +02:00
Henrik Rydgård
84fffec4f3
Switch all NativeMessageReceived to System_PostUIMessage
2023-07-06 17:26:02 +02:00
Henrik Rydgård
ac4506e389
Stop "messages from java" to leak out to NativeMessageReceived except where explicitly allowed
2023-07-06 17:13:04 +02:00
Henrik Rydgård
0151d877b3
Simplify the joystick checking java code a little
2023-07-06 15:03:43 +02:00
Henrik Rydgård
de96926d2e
Android input: Filter axis messages for duplicates. Assorted fixes and cleanup.
2023-07-06 12:29:27 +02:00
Henrik Rydgård
fc3f7da3af
TouchTestScreen: Have 8 entries logged instead of 2.
2023-07-06 11:48:25 +02:00
Henrik Rydgård
a7c21b582e
Move UI/RetroAchievements.{cpp,h} to Core.
...
Necessary to avoid some dependency inversion.
Gotta figure out how this will interact with the libretro stuff..
2023-07-02 12:02:20 +02:00
Henrik Rydgård
d23f659533
Android and iOS buildfixes
2023-06-30 17:35:27 +02:00
Henrik Rydgård
eb21a2e6c9
Break out the OSD data holder from Common/System/System.h, into OSD.cpp/h
2023-06-30 17:15:49 +02:00
Henrik Rydgård
01dda6cb7c
Final Android.mk fix hopefully.
2023-06-26 10:01:41 +02:00
Henrik Rydgård
2ba8eca2c8
Further UWP and Android fixes
2023-06-26 10:01:41 +02:00
Henrik Rydgård
07e6543f6b
Windows for ARM configuration fixes, Android.mk fix
2023-06-26 10:01:41 +02:00
Henrik Rydgård
c0f0c05417
rcheevos initial build setup and basic scaffolding
2023-06-26 10:01:40 +02:00
Henrik Rydgård
38f174eab4
Add query for system text input
2023-06-22 08:58:30 +02:00
Henrik Rydgård
7cc8c6cea4
OSD: Add semantics, move the the OSD state to common (while keeping the renderer in the UI).
2023-06-20 14:40:46 +02:00
Henrik Rydgård
9f88dbd656
Icon cache for UI rendering
...
This will be needed for achievements, and has uses already now.
2023-06-18 14:11:12 +02:00
Henrik Rydgård
93fbb5cdda
Merge pull request #17591 from lvonasek/feature_openxr_passthrough
...
OpenXR - Add passthrough option (Quest only)
2023-06-17 22:12:53 +02:00
Lubos
cef7c5a1a1
OpenXR - Forgotten changes added
2023-06-17 21:55:47 +02:00
Henrik Rydgård
9f14cfb54e
Merge pull request #17539 from Nemoumbra/broadcast-config
...
ClientConfigSubscriber added
2023-06-16 17:20:46 +02:00
Henrik Rydgård
fffaa41091
Extract the class TabbedUIDialogScreen from GameSettingsScreen.
2023-06-16 13:56:26 +02:00
Nemoumbra
311687a673
ClientConfigSubscriber added
2023-05-31 19:17:43 +03:00
Henrik Rydgård
2675d6ea43
Input event and device enums ( #17514 )
...
* Switch deviceID from int to enum InputDeviceID, globally
* Switch axisId to enum InputAxis
* Change int keycodes to InputKeyCode where it makes sense.
* SDL input buildfix
* SDL keycode buildfix
* Switch on enum warning fixes
* Qt keycode buildfix
* iOS keycode buildfix
* UWP keycode buildfix
* More iOS buildfix
* More iOS buildfix
* Update DinputDevice.cpp
2023-05-26 18:40:13 +02:00
Henrik Rydgård
dfb446f89d
Allow other backends than Vulkan to have GPU memory stats. Implement for GL.
2023-05-24 14:33:01 +02:00
Henrik Rydgård
d7a5edeb6f
GL: Break out GLPushBuffer from GLRenderManager.cpp/h
2023-05-23 08:41:09 +02:00
Henrik Rydgård
663d3c9a71
Do the same for the gold icons
2023-05-17 18:08:18 +02:00
Henrik Rydgård
ffdc9d0c3e
Replace the "pre-composed" icons for older devices with the originals.
...
Remove some un-needed resolutions.
2023-05-17 18:04:25 +02:00
Henrik Rydgård
4f1be34f24
Revert "Remove the Android display resolution selector"
...
This reverts commit ea0eaa31e6
.
2023-05-17 09:37:15 +02:00
Henrik Rydgård
cf9a628a2e
AndroidContentURI: Move code from the header to cpp. Some assorted cleanup, add a unit test for Download paths
2023-05-16 16:08:51 +02:00
Henrik Rydgård
16fbb31a65
Add a null pointer check in NativeActivity
...
due to stack trace from #17364
2023-05-09 23:43:04 +02:00
Unknown W. Brackets
1e2c3f7f30
Android: Explicitly allow content URI intents.
2023-05-06 23:47:19 -07:00
Henrik Rydgård
03bf19c47e
Merge pull request #17398 from lvonasek/cleanup_openxr_android12
...
OpenXR - Cleanup unsupported features, support Android 12
2023-05-03 20:05:16 +02:00
Lubos
0447b2b78a
OpenXR - Cleanup unsupported features, support Android 12
2023-05-03 19:41:23 +02:00
Henrik Rydgård
ee7e8d7c06
Add a unit test, fix listing zip directories
2023-05-02 11:35:45 +02:00
Henrik Rydgård
e0a67c7703
Don't use the cpu_features library on Android arm32.
...
Unbreaks Xperia Play, yay.
Also bumps the compile tools version in the gradle, unrelated but
doesn't hurt.
2023-04-29 23:54:47 +02:00
Henrik Rydgård
91be4cfeb6
typo fix
2023-04-29 16:15:48 +02:00
Henrik Rydgård
6945deec01
Replace a LOT of sprintf with snprintf, and a few strcpy with truncate_cpy
2023-04-28 21:04:05 +02:00
Henrik Rydgård
67754e3c99
Android: Upgrade to the latest gradle version.
...
Android Studio got an upgrade, and as usual comes with new gradle and
integration plugin.
2023-04-18 10:47:36 +02:00
Henrik Rydgård
075ccc0821
Android: Update target version to SDK 33
...
Which corresponds to Android 13.
Additionally removes redundant version lines from the manifest, and
includes a small warning fix.
2023-04-18 10:27:06 +02:00
Henrik Rydgård
9d98947a9d
Remove excessive camera preview framerate throttle
2023-04-16 10:21:53 +02:00
Henrik Rydgård
449d68a43d
Camera on Android: Choose the preview framerate closest to 30fps.
...
Might help #17283
2023-04-16 10:19:23 +02:00
Henrik Rydgård
5a1e9ed8f1
Add ConfigSettings.cpp/h
2023-04-08 09:22:02 +02:00
Henrik Rydgård
aba026f7e9
Add back our older VFPU approximations, as fallbacks if files are missing.
...
PR #16984 added more accurate versions of these functions, but they require
large lookup tables stored in assets/.
If these files are missing, PPSSPP would simply crash, which isn't good.
We should probably try to warn the user somehow that these files are
missing, though...
2023-04-03 11:33:41 +02:00
Henrik Rydgård
38f4cc4cc9
Make reverse mapping lookup work for the simple PSP buttons.
2023-03-31 11:05:29 +02:00
Unknown W. Brackets
00d84695d8
headless: Rename collectEmuLog for clarity.
...
This is still used when running tests outside headless, so leaving in
CoreParameter.
2023-03-26 10:21:07 -07:00
Unknown W. Brackets
76ef95a841
headless: Remove printfEmuLog, simplify output.
2023-03-26 10:17:34 -07:00
Henrik Rydgård
5c36aec484
More renaming
2023-03-26 11:21:34 +02:00
Unknown W. Brackets
42f64e34e8
headless: Rename StubHost to HeadlessHost.
...
It's had that weird name forever, get rid of it.
2023-03-25 17:49:05 -07:00
Unknown W. Brackets
0ade62d264
Core: Remove Host entirely.
2023-03-25 17:47:25 -07:00
Henrik Rydgård
d586ec0d5e
Don't create Host objects except in headless/unittest
2023-03-25 10:47:01 +01:00
Henrik Rydgård
9e125eeba7
Remove NotifyUserMessage from Host
2023-03-25 10:32:09 +01:00
Henrik Rydgård
349b73acec
Move the resampler usage to a common file, AudioCommon. ( #17176 )
...
* Move the resampler usage to a common file, AudioCommon.
Ports that don't want to use the resampler can now simply exclude that
file and provide their own implementation. Next up, libretro will be
converted to do it that way.
* Android.mk typo
* libretro makefile fix
* libretro buildfix
* libretro: try a different approach for the temporary solution
* duh
* double duh
2023-03-24 17:19:57 +01:00
Henrik Rydgård
a5fdf3d05b
Add samplerate argument to NativeMix
2023-03-24 14:48:53 +01:00
Henrik Rydgård
b440e28e38
Remove System_SendMessage!
...
iOS, Qt buildfixes
2023-03-22 23:52:51 +01:00
Henrik Rydgård
4c99712b60
And "immersive", "audio_resetDevice"
2023-03-22 23:52:38 +01:00
Henrik Rydgård
ac47476253
And share_text, toast, recreate
2023-03-22 23:52:25 +01:00
Henrik Rydgård
87d0c21f14
Make proper requests for the external hardware commands (gps, microphone, camera)
2023-03-22 23:52:25 +01:00
Henrik Rydgård
2c9787643d
Move the twitter special-case URL handling to java
2023-03-22 23:52:25 +01:00
Henrik Rydgård
5a55fd5fd3
And replace "graphics_restart", "toggle_fullscreen", etc
2023-03-22 23:52:15 +01:00
Henrik Rydgård
410b35fba3
Get rid of "finish" and "setclipboardtext" messages, replace with requests.
2023-03-22 22:17:26 +01:00
Henrik Rydgård
b7350f3cbf
Fix folder browser on Android and Windows
2023-03-22 19:25:35 +01:00
Henrik Rydgård
7718c06dd1
Port UWP file browser, fix UWP image browser
2023-03-22 15:36:14 +01:00
Henrik Rydgård
70f0ac04af
Port the file browser spawned by the Load button to the new request stuff
2023-03-22 15:36:14 +01:00
Henrik Rydgård
0403bbf084
Make the new image selection path work on Android as well.
2023-03-22 14:53:07 +01:00
Henrik Rydgård
e9f5394f59
Move the Windows open file dialog to the new system, switch the background image selector over.
2023-03-22 14:53:07 +01:00
Henrik Rydgård
8bbb9e7c95
Buildfixing
2023-03-22 13:22:10 +01:00
Henrik Rydgård
de064e210e
Replace the inputbox queue with a more generic RequestManager.
2023-03-22 12:41:11 +01:00
Henrik Rydgård
06fcc9ccd7
Add System_Notify
2023-03-21 13:37:16 +01:00
Henrik Rydgård
d3955b42bb
Rename some system functions, merge the Launch* ones.
...
android launchurl buildfix
2023-03-21 12:22:59 +01:00
Henrik Rydgård
a9eaa4fdc8
Get rid of an ifdef
2023-03-21 10:24:36 +01:00
Henrik Rydgård
32e8ab3b5d
Import all of basisu_transcoder, set up build
2023-03-13 12:37:43 +01:00
Henrik Rydgård
f936a6e9ce
Structs and enums and build files
2023-03-11 11:19:33 +01:00
Henrik Rydgård
cb10862510
Move texture replacer to GPU/Common.
...
Add new files ReplacedTexture.cpp/h too.
2023-03-09 21:11:53 +01:00
Lubos
0fe5bd79c4
OpenXR - Manifest merge fail fixed
2023-03-08 22:13:55 +01:00
Henrik Rydgård
a43b62537a
Buildfixes
2023-03-07 20:22:28 +01:00
Henrik Rydgård
ac94d3febf
VFS: Add support for opening zip files through a Content URI
2023-03-06 16:44:48 +01:00
Henrik Rydgård
53172eff63
Renaming and file splitting
2023-03-06 16:42:50 +01:00
Henrik Rydgård
3b39e9e068
Turn the VFS into a class, to be able to reuse it for other purposes.
2023-03-06 16:42:47 +01:00
Henrik Rydgård
1a577eea3c
Merge pull request #17041 from hrydgard/new-app-icon
...
New app icons
2023-03-02 14:13:28 +01:00
Henrik Rydgård
cf6b00e3aa
Also add new gold icon
2023-03-02 13:15:30 +01:00
Henrik Rydgård
ab5172cd6e
Gradle updates
2023-03-02 13:14:24 +01:00
Henrik Rydgård
055ac2b697
Add new default icon
2023-03-02 11:45:47 +01:00
Henrik Rydgård
31d796e769
Vulkan on Android: In non-debug mode, avoid devices that were rejected by VulkanMayBeAvailable.
...
Fixes #16931
Can still use these devices in debug builds by modifying the ini.
2023-02-28 18:18:19 +01:00
Henrik Rydgård
18999c3687
Create the GPUCommonHW class.
2023-02-25 14:42:10 +01:00
Henrik Rydgård
8b431b39ba
Wrap the display globals in a struct ( #16998 )
...
* Wrap the display globals in a struct
Makes it easier to search/replace these, for future refactorings.
* Some renaming
* Qt buildfix, also fix the Qt build on Mac (got broken with battery changes)
* Attempt at buildfixing ios
* UWP buildfix
2023-02-25 13:09:44 +01:00
Lubos
7bbb5eac51
Comment fixed
2023-02-08 17:41:50 +01:00
Lubos
abf76bd212
OpenXR - One APK for both Pico and Quest
2023-02-08 17:26:36 +01:00
Henrik Rydgård
d502198aa3
Move GLFrameData out of GLRenderManager.
...
Small refactor to prepare for adding delayed readback support to the
OpenGL backend.
2023-02-07 12:12:00 +01:00
Henrik Rydgård
fb8aff5a8c
Split out the depth stuff from the file, move to GPU/Common
2023-02-03 21:06:43 +01:00
Henrik Rydgård
3b36a1bb66
TiltEventProcessor belongs in Core, not UI.
2023-02-01 15:04:32 +01:00
Henrik Rydgård
a88bafff4d
Break out the JoystickHistoryView
2023-02-01 14:58:16 +01:00
Henrik Rydgård
c8dce81ff0
Merge pull request #16156 from hrydgard/opengl-thread-refactor
...
OpenGL threading refactor
2023-01-31 11:14:01 +01:00
Henrik Rydgård
d43452f0ce
Fix to shutdown sequence
2023-01-30 11:49:31 +01:00
Henrik Rydgård
2659fd6f66
Android work. Make the Android OpenGL exit prodecure make more sense
2023-01-30 11:49:31 +01:00
Unknown W. Brackets
489411359e
Common: Add cpu_features library.
2023-01-29 14:35:58 -08:00
Henrik Rydgård
f38dd95368
Why not just schedule directly...
2023-01-12 12:24:45 +01:00
Henrik Rydgård
241d867ed7
Android: Take the key change from PR #16583 , updating display measurements form the right thread
2023-01-12 12:20:17 +01:00
Henrik Rydgård
ea0eaa31e6
Remove the Android display resolution selector
...
I think its benefit is absolutely tiny if any, and causes a lot more
problems than it's worth. Bye.
Note that this isn't the rendering resolution selector, that will of
course still be there, but it's the "hardware scaler" resolution.
2023-01-11 22:53:42 +01:00
Henrik Rydgård
c27689910e
Break out ScrollView from ViewGroup.h, and PopupScreens from UIScreen.h
2023-01-11 10:56:31 +01:00
Henrik Rydgård
07114c6aaf
Remove return value from axis functions in API
2023-01-10 10:12:37 +01:00
Henrik Rydgård
fdfc4cbe40
Android: Remove return value from touch event functions
2023-01-10 10:12:33 +01:00
Henrik Rydgård
ab6fafb6eb
Invert dependency to avoid compile issues
2023-01-05 08:38:53 +01:00
Henrik Rydgård
a3e5e475cd
Revert "buildfix attempt"
...
This reverts commit 97328620f16efdad7733994a0c825963675186c0.
2023-01-05 08:38:53 +01:00
Henrik Rydgård
7e374c9324
Address feedback, more fixes
2023-01-05 08:38:53 +01:00
Henrik Rydgård
d352340f77
buildfix attempt
2023-01-05 08:38:52 +01:00
Henrik Rydgård
b56eef487c
Strict mode checking - no way to forget detaching now.
...
And if we forget to attach, boom. Hopefully I caught all of them.
2023-01-05 08:38:52 +01:00
Henrik Rydgård
916404f0e4
Try to get a bit better at detaching threads that have used JNI from the VM.
2023-01-05 08:38:49 +01:00
Henrik Rydgård
830f1064e6
Merge pull request #16676 from unknownbrackets/riscv-disasm
...
Add disassembler for RISC-V
2023-01-04 09:52:56 +01:00
Henrik Rydgård
cd535263c1
Update version number
2023-01-03 11:14:31 +01:00
Henrik Rydgård
bd6cdeb4ce
Remove "toast" message on failure in displayInit, not allowed from that thread.
2023-01-02 16:31:30 +01:00
Henrik Rydgård
0f4f9997fd
Update version number
2023-01-02 10:19:53 +01:00
Unknown W. Brackets
77849d3eed
riscv: Add disassembler.
...
From https://github.com/anthony-coulter/riscv-disassembler .
Modified slightly to pull in less headers in the h, prefix funcs.
2023-01-01 10:28:53 -08:00
Henrik Rydgård
fd5a27f985
Some more paranoia. Name the EmuThread on Android, just because.
2022-12-31 15:18:14 +01:00
Henrik Rydgård
492c0b4ab3
Update version number
2022-12-30 13:37:04 +01:00
Henrik Rydgård
10c0b3f2ae
Comment improvements
2022-12-29 00:39:59 +01:00
Henrik Rydgård
463d703feb
More assorted cleanup
2022-12-29 00:39:59 +01:00
Henrik Rydgård
6927c44fba
Remove unused functions, log and comment fixes
2022-12-29 00:39:59 +01:00
Henrik Rydgård
31d5881c90
Enable support for Android Vulkan validation. Fix a minor validation error.
2022-12-22 11:13:52 +01:00