Henrik Rydgård
19b494ba1e
Revert "Path: If a Path is empty, the slash operator will not add an additional slash."
...
This reverts commit 864b2bbb3170574fb9144201fb1786559b13c016.
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
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
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
lainon
b304551747
Code readability, vec reserve() and remove excess c_str()
2022-09-30 12:31:32 +03:00
lainon
fec708489a
Correct cleaning string and remove unused vars
2022-09-30 12:26:30 +03:00
Henrik Rydgård
f2e0f7611c
Display paths with backslashes on Windows. Show texture path when saving.
2022-09-01 15:04:59 +02:00
Unknown W. Brackets
656576c283
Io: Correct access field on dir listings.
2022-07-13 23:40:38 -07:00
tunip3
42ae18eea5
Replace Win32 file IO with UWP safe variants and add support for getting drives to UWP build ( #15652 )
...
* replace, all win32 file io with their matching uwp safe variants
* add support for drive listing
* Delete NATIVEAPP.ipch
* Update .gitignore
* fix indentation
2022-07-06 23:59:47 +02:00
Unknown W. Brackets
5cab38a645
Build: Use cinttypes not inttypes.h.
...
Apparently this helps webOS, see #15604 .
2022-06-17 22:58:30 -07:00
Unknown W. Brackets
73ece5b5ca
Windows: Correct root vol handling for UNC paths.
...
Otherwise CreateFullPath() fails.
2022-03-01 21:07:17 -08:00
Unknown W. Brackets
2479d52202
Global: Reduce includes of common headers.
...
In many places, string, map, or Common.h were included but not needed.
2022-01-30 16:35:33 -08:00