Commit graph

466 commits

Author SHA1 Message Date
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
18f828d74b Some zero init, add a null check in TextureReplacer. See #15730 2022-07-26 23:48:39 +02:00
Henrik Rydgård
e6403d7157 Split GetPointer into two versions, to help with const correctness 2022-07-24 13:26:19 +02:00
Unknown W. Brackets
c766536914 Io: Show message if files are outside valid ISO.
This should catch more cases of a corrupt ISO file.
2022-07-11 18:58:57 -07:00
Henrik Rydgård
b529313db2 Slightly improve logging of failed block device reads 2022-07-12 00:11:15 +02: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
456a38b1c5 Android: Correct truncation behavior. 2022-02-06 22:05:56 -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
Unknown W. Brackets
3e73ce87ee Path: Check for PSP case insensitively.
This allows a game to look up ms0:/psp/ eve with the PSP special case path
handling.
2021-12-16 15:06:15 -08:00
Henrik Rydgård
b069a239aa Add sanity check to DirectoryFileHandle::Read 2021-10-07 23:59:21 +02:00
Henrik Rydgård
de3d711616 Move FixPathCase to Common/File/Path 2021-09-11 21:17:23 +02:00
Henrik Rydgård
36079b86d0 Optimize away a couple of existence checks 2021-09-11 19:53:19 +02:00
Henrik Rydgård
8e2b73b05f Optimize MetaFileSystem::ReadEntireFile 2021-09-11 19:32:37 +02:00
Henrik Rydgård
07413aa4e3 Feedback 2021-09-11 18:53:46 +02:00
Henrik Rydgård
fcc0337576 Fix the Android recursive size computation and hook it up. 2021-09-11 18:12:30 +02:00
Henrik Rydgård
48310d15a9 Add metafilesystem hook to add optimized implementations of compute recursive directory size 2021-09-11 18:12:29 +02:00
Henrik Rydgård
1eef8973c7
Merge pull request #14825 from unknownbrackets/memstick-cache
Add a cache for memory stick usage
2021-09-11 18:09:34 +02:00
Unknown W. Brackets
906664b9d8 Io: Cache SAVEDATA usage between writes.
Some games will loop over saves to check the size of each, and calculating
the total usage is expensive.  We don't need to recalculate each time.
2021-09-11 07:29:15 -07:00
Henrik Rydgård
09f65db91c Cleanup 2021-09-11 15:35:11 +02:00
Unknown W. Brackets
694e92dc82 Core: Use FileBlockDevice for PBPs without an ISO. 2021-09-06 19:39:34 -07: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
f53eb4ae0d Fix silly filesystem mounting bug introduced in #14638
Fixes #14650.
2021-07-27 22:55:02 +02:00
Henrik Rydgård
b3c2252b28 Fix further issues when the memstick dir is the PSP dir 2021-07-25 19:23:24 +02:00
Henrik Rydgård
8ab627d6e9 Workaround for the /PSP path thing. Needs testing. 2021-07-25 17:32:12 +02:00
Henrik Rydgård
e9f19e133b
Merge pull request #14638 from hrydgard/metafilesystem-cleanup
Cleanup the ownership model in MetaFileSystem.
2021-07-25 14:02:46 +02:00
Henrik Rydgård
9ae00b80b1 Cleanup the ownership model in MetaFileSystem.
The old one was error-prone spaghetti.
2021-07-24 10:31:15 +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
96406364ca Fix for new bug in GetDirListing, oops 2021-07-19 20:43:10 +02:00
Henrik Rydgård
f0f2506dcc Forgot to pass the flags to GetFilesInDir to mimic the old behavior 2021-07-19 17:38:01 +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
a341eb6c32 Remove unnecessary slash conversion 2021-07-19 17:34:51 +02:00
Henrik Rydgård
58ecab849e Just some variable initialization 2021-07-18 16:00:07 +02:00
Unknown W. Brackets
84036fa765 Io: Correct file open error code. 2021-06-09 21:51:43 -07:00
Henrik Rydgård
3737daaf0c Address more feedback, warning fix 2021-06-07 00:26:26 +02:00
Henrik Rydgård
ccc78c42f5 Route DirectoryFileSystem::Open to Android storage. 2021-06-07 00:24:52 +02:00
Henrik Rydgård
6553b96368 Remove AndroidStorageFileSystem. Not useful. 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
trilkk
033d0c3f50 Fix FixPathCase bug when constructing the full path.
Swap the append order for / and the path component.
2021-05-17 21:18:24 +03:00
Unknown W. Brackets
82cd904e99 Common: Use Path for GetFileSize(). 2021-05-15 11:11:37 -07:00
Henrik Rydgård
40ab92fe7b Remove unused function GetHostPath from filesystems 2021-05-13 10:39:17 +02:00
Henrik Rydgård
47039b4bcd Address all the easy feedback. Some is left. 2021-05-13 10:39:17 +02:00
Henrik Rydgård
2e16e83159 It never ends... 2021-05-13 10:39:16 +02:00
Henrik Rydgård
ae06499a0c Change Copy, Rename to use Path. Remove std::string version of Exists().
Buildfixes

Buildfix
2021-05-13 10:39:16 +02:00
Henrik Rydgård
0d80362c30 Change parameter of DeleteDir and friends to Path 2021-05-13 10:39:16 +02:00
Henrik Rydgård
025bcb1673 Introduce Path, start using it all over the place.
Still lots left to convert!

Convert GetSysDirectory to return Path.

More buildfixing

Remove unnecessary Path( constructors
2021-05-13 10:39:16 +02:00