Commit graph

1256 commits

Author SHA1 Message Date
Henrik Rydgård
ed7053329a Fix some mis-handling of single file URI. Fixes the Load... button. 2021-08-07 12:17:31 +02:00
Henrik Rydgård
43ba908225 Propagate errors from file identification upwards better. 2021-08-07 11:54:45 +02:00
Henrik Rydgård
7c1c06ed66 If in legacy storage mode from an earlier install, we still might need to ask for permission.
So can't cap on that, until Android removes legacy storage access entirely, probably in
Android 13...

Should help nassau-tk's issue in #13847.
2021-08-07 11:01:44 +02:00
Henrik Rydgård
a0a5f7a67a Minor improvements on Android 9/10. Let the user reset to root of storage.
This includes handling weird "raw:/" content URIs. These I haven't seen
on newer versions.
2021-08-04 23:22:43 +02:00
Henrik Rydgård
93673cb565 Correct the cutoff for scoped storage. Android 9,10 (API 28,29) shouldn't use it. 2021-08-04 23:22:43 +02:00
Henrik Rydgård
80fc09a222 Indentation fix 2021-08-04 23:22:43 +02:00
Henrik Rydgård
59088e0921 Android 28 was the wrong cutoff for oldschool permissions, 29 is correct. 2021-08-04 23:22:43 +02:00
Henrik Rydgård
f51b8116a0 Basic flow of setting up and moving the PSP directory works now. 2021-08-04 23:22:43 +02:00
Henrik Rydgård
793e79945f Enable scoped storage enforcement on Android 11+.
This has a number of UX issues and bugs we need to work through, but at least
games are playable, things mostly work. Upgrades are handled smoothly by
keeping existing storage access until you uninstall. After a reinstall, you'll
need to re-select your old PSP directory manually in settings :(
2021-08-04 23:22:43 +02:00
Henrik Rydgård
3f1a5a148f Add a missing java function (fix a little merge mistake) 2021-07-26 21:54:48 +02:00
Henrik Rydgård
3ec13b8440 Two more functions 2021-07-25 17:32:12 +02:00
Henrik Rydgård
0997b8500c Convert four more functions to allow for error codes.
Note that they still don't actually use them...
2021-07-25 17:32:12 +02:00
Henrik Rydgård
2333239514 Change one storage function to use an error code. 2021-07-25 17:32:12 +02:00
Henrik Rydgård
ab69b896c3 Add and hook up Android_MoveFile 2021-07-25 17:32:12 +02:00
Henrik Rydgård
729496b60a Error code support preparations 2021-07-25 17:32:09 +02:00
Henrik Rydgård
d5781824eb Fix lastModified, speed up Android_FileExists. Add Android_CopyFile (unused) 2021-07-24 00:33:05 +02:00
Henrik Rydgård
6b0851cb73 Use a simpler method that actually works to get free storage space from content URI. 2021-07-24 00:33:05 +02:00
Henrik Rydgård
14e24b28ad Use a DocumentsContract query for single-file GetFileInfo too. 2021-07-24 00:33:05 +02:00
Henrik Rydgård
bd99e4a287 Greatly speed up content URI file listings by using DocumentContract queries. 2021-07-24 00:33:05 +02:00
Henrik Rydgård
4f10ff9d31 Add quick method to check file existence by content URI.
Seems to speed up bringing up the pause screen slightly (checking for
save state files).
2021-07-19 17:34:51 +02:00
Henrik Rydgård
15fafe5415 Fix date/time display for savestates 2021-07-19 17:34:51 +02:00
Henrik Rydgård
fff3850096 Add ability to rename content URI files, fixing saving save states.
buildfix
2021-07-19 17:34:50 +02:00
Henrik Rydgård
079280572a Update UI atlas 2021-07-11 10:02:43 +02:00
Henrik Rydgård
98372c465f Break out EmuScreen's key/axis inputs to ControlMapper.cpp/h
Additionally, break out the analog stick mapping to the same file.

This will make more sense soon when I change where the analog mapping
is called from, but want this refactor in separately for testing.
2021-07-08 22:24:00 +02:00
Yifan Gu
633a6f612b Refactor and unify analog input settings 2021-07-05 12:38:46 +02:00
Henrik Rydgård
942958c7d8 Store the OpenSL error in a global to avoid "No context"
Followup to #14536
2021-06-16 07:28:45 +02:00
Henrik Rydgård
90cb284837 Remove asserts from OpenSL init. Expose error inside audio settings 2021-06-15 23:13:07 +02:00
Henrik Rydgård
03c79ae055 Additional android buildfix 2021-06-12 13:03:54 +02:00
Henrik Rydgård
75fb783433 Android.mk buildfix 2021-06-12 13:03:54 +02:00
Henrik Rydgård
1b0ac23a69 Get rid of Executor.cpp/h.
There was only one implementation.
2021-06-12 13:03:53 +02:00
Henrik Rydgård
446c2c027e Get rid of the PrioritizedWorkQueue. Instead just queue tasks on the ThreadManager. 2021-06-12 13:03:53 +02:00
Henrik Rydgård
73871b9b7e Implement new thread manager, port stuff to it. 2021-06-12 13:03:53 +02:00
Henrik Rydgård
308c7d693c Address more feedback 2021-06-07 00:49:31 +02:00
Henrik Rydgård
3737daaf0c Address more feedback, warning fix 2021-06-07 00:26:26 +02:00
Henrik Rydgård
37d651a89d Address a bunch of the feedback 2021-06-07 00:26:26 +02:00
Henrik Rydgård
27dbcd3b34 Revert "Turn on scoped storage, for the purposes of testing on this branch."
This reverts commit 4b337303a4b2aa49aac6296609331e7c87e61085.
2021-06-07 00:26:26 +02:00
Henrik Rydgård
9b32ea2f55 Split out AndroidStorage.cpp from android/jni/app-android.cpp, move to Common 2021-06-07 00:26:24 +02:00
Henrik Rydgård
f8b595521d Simple attempt at libretro buildfix, comment fix 2021-06-07 00:24:52 +02:00
Henrik Rydgård
6c3825bfbd UWP and Android buildfixes 2021-06-07 00:24:52 +02:00
Henrik Rydgård
1aed8ce7b1 Add content URI support to LocalFileLoader, remove ContentUriFileLoader 2021-06-07 00:24:52 +02:00
Henrik Rydgård
2f31cb12fb Add support for writing to file. Basics work now (having memstick on a content path) 2021-06-07 00:24:52 +02:00
Henrik Rydgård
dba0a6ba12 Rewrite CreateFullPath to be agnostic of path format. 2021-06-07 00:24:52 +02:00
Henrik Rydgård
468f3d8b3f wip
More work towards moving PSP directory
2021-06-07 00:24:52 +02:00
Henrik Rydgård
825478bbf7 Remove CreateDirIn, not useful enough to keep. 2021-06-07 00:24:51 +02:00
Henrik Rydgård
5e3019073c Android content URI support in Path. 2021-06-07 00:24:51 +02:00
Henrik Rydgård
1f018d33c5 Start work on supporting Android Content URIs in the FileUtil API.
Add tentative Android Content URI support to much of FileUtil.h.

Buildfix

Fix some issues with the file browser in storage URIs.
2021-06-07 00:24:51 +02:00
Henrik Rydgård
b397e5c455 Assorted plumbing.
wip

Buildfix
2021-06-07 00:24:51 +02:00
Henrik Rydgård
beb0b4e9f3 More work on AndroidStorageFileSystem.cpp. Fix current directory getting reset. 2021-06-07 00:24:51 +02:00
Henrik Rydgård
ef607a5fe2 Implement a "FileSystem" that wraps Android content storage. So far unused. 2021-06-07 00:24:51 +02:00
Henrik Rydgård
e3cf04bb34 Implement file filters for Android in PathBrowser
asdf

Move Android file listing parsing logic into app-android.cpp.

Add utility for parsing/writing Android Content Storage URIs.

Fix some bugs. Allow upwards navigation in file browser from directories downstream from tree URIs.
2021-06-07 00:24:51 +02:00