Commit Graph

331 Commits

Author SHA1 Message Date
Henrik Rydgård 2537f76277 UI: Add a basic FileChooserChoice view 2023-07-16 12:14:40 +02:00
Henrik Rydgård 19b494ba1e Revert "Path: If a Path is empty, the slash operator will not add an additional slash."
This reverts commit 864b2bbb31.
2023-06-27 23:31:59 +02:00
Henrik Rydgård 864b2bbb31 Path: If a Path is empty, the slash operator will not add an additional slash. 2023-06-26 10:01:42 +02:00
Henrik Rydgård 8beca03e7e MacOSX buildfixes 2023-06-26 10:01:41 +02:00
Henrik Rydgård f6fdaa4f56 Get it to recognize the hash by using the rcheevos hash implementation 2023-06-26 10:01:41 +02:00
Henrik Rydgård 444897a8b8 Some reordering to make the code make more sense (no actual effect) 2023-05-16 18:25:31 +02:00
Henrik Rydgård 081bdb323a Fix running some file formats from the Downloads folder
Due to how we mount stuff, we need to be able to navigate one step up
from the executable, and then re-attach the executable filename. To
allow this, in content URIs, treat ':' as a directory separator for
navigation purposes.

End result, you can now download cube.elf from the website and run it directly
from Downloads without using a file manager to move it.
2023-05-16 16:44:28 +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
Bashar Astifan f86a462145 Revert creating ToShortFriendlyPath, more cleanup
Path preview can actually solved within ToVisualString without creating another function, I feel it will cause confusing as both function will be similar.
2023-05-04 12:03:14 +04:00
Bashar Astifan b75cf52909 Fixed Path issue 2023-05-04 05:48:14 +04:00
Bashar Astifan 132a00ade3 Merge branch 'master' into master 2023-05-03 23:23:29 +04:00
Bashar Astifan 808ff28aa5 Free space and other fixes
- Fixed freespace value
- added back BOOTABLE case to BROWSE_FOR_FILE
- Fixed fake folder info
- Fixed some code formating
2023-05-03 13:04:07 +04:00
Henrik Rydgård 919979eece Disable excessive logging 2023-05-02 11:40:50 +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 35aff7eaf9 Fix logic in ZipFileReader file listing 2023-05-01 23:20:38 +02:00
Bashar Astifan 9b0577351f Review's changes, more fixes and better structure 2023-05-02 00:09:22 +04:00
Bashar Astifan 05776ee6af Major update 2023-04-30 08:54:54 +04:00
Bashar Astifan d0b6935592 UWP Improved Support 2023-04-28 23:22:17 +04:00
Henrik Rydgård ef5abac1d3 Fix an oversight when saving replacement textures on scoped storage
We ended up not properly mangling the filename when changing extensions
if the file URI is an Android content URI.

Fixes #17320
2023-04-22 00:05:07 +02:00
Henrik Rydgård f5afc91f23 Change Enable/Disable All to just a Disable All button. 2023-03-23 10:32:11 +01:00
Henrik Rydgård dfa06c4e77 SDL buildfix, fix file/folder browsers on Darwin 2023-03-22 19:25:35 +01:00
Henrik Rydgård 8484dd4917 Nicer logging if no texture.zip file is there 2023-03-16 22:59:26 +01:00
Henrik Rydgård 306fdde9d0 Correct error handling for missing ini (only accept it in directories, not zip) 2023-03-08 09:29:19 +01:00
Henrik Rydgård 74cad6b521 Quick buildfix 2023-03-08 09:17:26 +01:00
Henrik Rydgård e277db63c0 Optimize away those extra GetFileInfo, since both backends can get the size during Open efficiently. 2023-03-08 09:11:25 +01:00
Henrik Rydgård 16b0e1103a Check file existence early. Although, not sure if this is the right
thing on Android...
2023-03-08 09:04:08 +01:00
Unknown W. Brackets bfb7a5b093 Common: Cleanup an unused constant. 2023-03-07 22:00:30 -08:00
Unknown W. Brackets 2fce2df7f6 Common: Ensure VFS references not directly deleted. 2023-03-07 21:51:47 -08:00
Unknown W. Brackets 84b7df62ab Common: Cleanup zip file stat flag checks. 2023-03-07 21:36:33 -08:00
Henrik Rydgård a43b62537a Buildfixes 2023-03-07 20:22:28 +01:00
Henrik Rydgård 97cf5f8d81 More renaming, initial implementation of manual file access for both VFS backends 2023-03-07 19:37:19 +01:00
Henrik Rydgård 23b310f59a VFS: Add boilerplate 2023-03-07 10:19:51 +01:00
Henrik Rydgård 3d5526a175 Allow specifying the VFS when loading INI files.
Will be useful in the tex replacer.
2023-03-07 10:04:10 +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 54af240013 Use a vector internally in VFS. 2023-03-06 16:42:50 +01:00
Henrik Rydgård 7649794164 Remove some ifdefs 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 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 0e3cf9862e ComputePathTo: Handle case where from == to. 2023-01-02 22:10:00 +01:00
Unknown W. Brackets 48504ffcc9 VFS: Use a lock for zip asset reading.
We can't read multiple at once.
2022-12-30 20:34:52 -08:00
Unknown W. Brackets 682f5fae97 UI: Fix reverse-dependency in PathBrowser. 2022-12-27 15:08:57 -08:00
Unknown W. Brackets 9cfcbc46e6 Global: Cleanup initialization/pointer checks.
Cleaning up a lot of cases of uninitialized data, unchecked return values
for failures, and similar.
2022-12-10 21:13:36 -08:00
Unknown W. Brackets f44852bb18 Global: Cleanup virtual/override specifiers.
Also missing virtual destructors, hidden non-overrides, etc.
2022-12-10 21:13:36 -08:00
Henrik Rydgård f3ba8fb334 Address feedback, also sort texture shaders 2022-12-03 19:30:50 +01:00
Henrik Rydgård 0251f33ec3 Don't use PPSSPP-specific stuff in Common/VR for now. 2022-10-17 23:13:43 +02:00
Unknown W. Brackets 8c1acc30e4 Savedata: Combine file info and dir listing calls. 2022-10-09 14:42:31 -07:00
Unknown W. Brackets 7b8350f8a8 Android: Differentiate empty dir from failure. 2022-10-09 14:42:31 -07:00
lainon 3cdf72b68b Better readability and optimization insertion into container by replacing 'insert' -> 'emplace', 'push_back' -> 'emplace_back' 2022-09-30 12:35:28 +03:00