Commit Graph
107 Commits
Author SHA1 Message Date
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 dbd3d8ca2a Handle an empty path in the game browser. 2021-08-04 23:22:43 +02:00
Henrik Rydgård 64dbd97731 Address feedback 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 3be1ff6ce4 Get the new setup flow going, with a confirmation dialog etc.
Moving the folder while already installed still crashes.
2021-08-04 23:22:43 +02:00
Henrik Rydgård 5d047a394b Scoped storage: Make the home button simply go to the root of the current directory tree. 2021-07-25 19:23:10 +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 c6c5a93bf4 Couple of minor things, crashfix on deserialization failure 2021-07-25 15:42:12 +02:00
Henrik Rydgård 76e8e89925 Add support for FILE_APPEND. 2021-07-25 15:42:12 +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 bd99e4a287 Greatly speed up content URI file listings by using DocumentContract queries. 2021-07-24 00:33:05 +02:00
Henrik Rydgård 96406364ca Fix for new bug in GetDirListing, oops 2021-07-19 20:43:10 +02:00
Henrik Rydgård e73e0dc0be Fix multiple issues preventing in-game saves from working. 2021-07-19 17:34:51 +02:00
Henrik Rydgård 2f04fc1c00 Refactor DirectoryFileSystem::GetDirListing to use GetFilesInDir.
Lets us remove some platform specific code, fixing the content URI case.
2021-07-19 17:34:51 +02:00
Henrik Rydgård bea9f67c02 Fix assorted path issues 2021-07-19 17:34:51 +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 e1b4a9175a Add handling for Android content URIs to VFSReadFile, fixing savestate thumbnails. 2021-07-19 17:34:51 +02:00
Henrik Rydgård b0558b2174 Assorted directory fixes 2021-07-19 17:34:50 +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 0c765c2c28 Buildfix 2021-07-19 10:42:44 +02:00
Henrik Rydgård 7c3bc01268 Make GetFilesInDir fully-featured enough to use in DirectoryFileSystem
To later reduce code duplication in #14619
2021-07-19 10:31:48 +02:00
Henrik Rydgård 58ecab849e Just some variable initialization 2021-07-18 16:00:07 +02:00
Henrik Rydgård 59e2d3556f Sort file listings from Android Content URIs. May help #14607 2021-07-12 15:10:29 +02:00
Henrik Rydgård 0a4da48978 PathBrowser: Load all types of path asynchronously. Helps with slow scoped storage listings :/ 2021-07-10 11:54:03 +02:00
Henrik Rydgård a0bae1855f Path browser: Move special handling of Windows root directory to GetFilesInDir. 2021-07-10 11:47:03 +02:00
Unknown W. Brackets 39f479025e Io: Correct CreateFullPath() on Linux.
Fixes #14519.
2021-06-09 23:09:04 -07:00
Henrik Rydgård 308c7d693c Address more feedback 2021-06-07 00:49:31 +02:00
Henrik Rydgård c6163fd3e4 Only log slow file listings 2021-06-07 00:26:27 +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 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 6078701f9d Fix File::GetFileInfo for Content URIs. Can now load homebrew. 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 5df471577f Cleanup. Add a way to get very early log output on Android.
Cleanup in FileUtil
2021-06-07 00:24:52 +02:00
Henrik Rydgård ccc78c42f5 Route DirectoryFileSystem::Open to Android storage. 2021-06-07 00:24:52 +02:00
Henrik Rydgård c86c7686a8 Remove more special casing of content URIs 2021-06-07 00:24:52 +02:00
Henrik Rydgård 1eb36cd655 Remove now-unnecessary special cases in PathBrowser 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 6553b96368 Remove AndroidStorageFileSystem. Not useful. 2021-06-07 00:24:51 +02:00
Henrik Rydgård 40fb114f60 Delete a couple unused constructors of IOFile 2021-06-07 00:24:51 +02:00
Henrik Rydgård a2fa724d8e Convert GetFileSize to use 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