Henrik Rydgård
fcc0337576
Fix the Android recursive size computation and hook it up.
2021-09-11 18:12:30 +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
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
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
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
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
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
beb0b4e9f3
More work on AndroidStorageFileSystem.cpp. Fix current directory getting reset.
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
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
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
Henrik Rydgård
cc3868db97
Loaders: Look for PSP/GAME/ not /PSP/GAME/.
...
Because upcoming Path changes will affect path string comparisons.
2021-05-09 17:50:59 -07:00
Unknown W. Brackets
af5618705c
http: Remove timeoutless requests.
...
Let's always have timeouts. This timeout is reset even when a single byte
is sent, so it's pretty generous.
2021-05-01 11:20:05 -07:00
Unknown W. Brackets
58d46274ef
Common: FileUtil rename buildfix.
2021-04-25 14:51:39 -07:00
Henrik Rydgård
77b8a14770
Merge GetFileInfo/GetFileDetails into GetFileInfo
2021-04-25 20:52:29 +02:00
Henrik Rydgård
1b13badeb4
Move remaining FileUtil functions into the File namespace.
2021-04-25 20:38:22 +02:00
Unknown W. Brackets
f32f89dd90
Global: Remove some unused variables.
2021-02-15 11:59:45 -08:00
Unknown W. Brackets
9d22297a90
Windows: Use CommonWindows more consistently.
...
Also, make sure WinSock2.h is included beforehand where it's needed.
2021-02-14 10:30:10 -08:00
Unknown W. Brackets
da2e722794
Windows: Fix some format warnings.
2021-02-14 10:30:10 -08:00
Unknown W. Brackets
0ffac20fcd
Common: Include unistd.h before ctime on mingw.
...
This is required for localtime_r and similar to be available.
2021-02-14 10:30:10 -08:00
Unknown W. Brackets
2c165c9b6d
Windows: Fix improper case or missing includes.
...
As per mingw errors/warnings.
2021-02-14 10:30:10 -08:00
Henrik Rydgård
4f43cff5ca
Move fileutil, net, image loaders, ui to Common. ( #13506 )
...
* Move and rename file_util/fd_util to Common/File/FileUtil and DirListing
Let's also move net while we're at it.
Move the ZIM/PNG loaders over to Common.
Move the UI framework into Common
iOS buildfix
* Buildfix
* Buildfixes
* Apple buildfix
* This typo again..
* UWP buildfix
* Fix build of PPSSPPQt, such as it is (it's not in good condition...)
* Guess what? Another buildfix.
2020-10-04 20:48:47 +02:00
Henrik Rydgård
9e41fafd0d
Move math and some file and data conversion files out from native to Common.
...
Buildfixing
Move some file util files
Buildfix
Move KeyMap.cpp/h to Core where they belong better.
libretro buildfix attempt
Move ini_file
More buildfixes
2020-10-04 09:12:46 +02:00
Henrik Rydgård
ff8148dd92
Move native/util, native/data and native/i18 to Common/Data.
...
Also move colorutil.cpp/h
linking build fix experiment
Delete a bunch of unused CMakeLists.txt files
CMakeLists.txt linking fix
Don't include NativeApp.h from any headers.
Android.mk buildfix
Half of the UWP fix
Buildfix
Minor project file cleanup
Buildfixes
Guess what? More buildfixes!
2020-10-04 07:28:29 +02:00
Henrik Rydgård
ed88761ecc
Merge ext/native/stringutil.cpp/h into Common/StringUtils.cpp/h.
2020-09-29 15:51:51 +02:00
Unknown W. Brackets
e59951382a
Global: Make stringutil includes more explicit.
2020-08-10 07:05:22 -07:00
Unknown W. Brackets
b8342fb8ec
SaveState: Rename ChunkFile files to Serialize.
...
Makes more sense and less weird than ChunkFileDoMap, etc.
2020-08-10 08:04:05 +00:00
Unknown W. Brackets
4b4e3432cd
SaveState: Split Do() into a separate header.
2020-08-10 08:03:41 +00:00
Unknown W. Brackets
d7ad43b1d9
Io: Cleanup access bits for files.
...
Also, we default a lot of these members, so don't need to reset.
2020-05-21 18:58:24 -07:00
Unknown W. Brackets
49abe9ed6c
Io: Open sce_lbn references and whole ISO faster.
2020-05-21 18:58:24 -07:00
Unknown W. Brackets
67416e5919
Io: Simulate VFAT bug only when simulating FAT32.
...
And cleanup flag handling a bit.
2020-05-21 18:57:46 -07:00
Unknown W. Brackets
08b6275bc7
Io: Apply VFAT hack only to dirs <= 8 chars long.
...
Fixes Mega Drops 2, which relies on the lowercase name at about 10
characters.
2020-03-21 22:49:19 -07:00
Unknown W. Brackets
cb1b7b1e43
Core: Bring over some file related Switch changes.
...
Reducing the distance from the Switch port code.
2020-03-03 22:53:03 -08:00
Unknown W. Brackets
5009698cc0
Core: Use a shared_ptr for i18n categories.
...
This does not make them thread safe, but it reduces the chances of a crash
a bit (see #12594.)
2020-02-09 07:35:16 -08:00
Unknown W. Brackets
913121cf2b
Io: Consistently use error codes with OpenFile().
...
This gets rid of OpenWithError(), and just always returns a negative value
on error for OpenFile(). Also fixed the sequence rollover, which could've
returned 0.
0 should be considered a valid handle ideally, but left it never returning
0 to simplify cleanup in some areas.
2019-10-20 11:03:37 -07:00
Unknown W. Brackets
761a9d321f
Windows: Allow write-only files to be read later.
...
Fixes #11939 , at least the hang described in that issue. Seems to match
with how the PSP handles file locking.
2019-08-10 08:34:01 -07:00
Henrik Rydgård
4d195ce955
Workaround for DJ Max Portable's clumsy copy protection. Fixes #9477 .
2019-08-01 18:45:28 +02:00
Unknown W. Brackets
33cfac549d
Replay: Attempt to ignore reads in PSP/GAME.
...
Unless there are writes in this directory, we should be able to safely
ignore them.
Currently detection isn't perfect (like PSP/./GAME/../GAME), but this
should catch the vast majority of cases.
2019-07-04 23:46:15 -07:00
Henrik Rydgård
0cd3ac06d0
Avoid trying to create a FileLoader for empty filenames
...
Assorted cleanup
2019-02-25 21:35:51 +01:00
Henrik Rydgård
b572dc52a5
Remove usage of deprecated function readdir_r (and ugly Blackberry hack diren_large)
2019-01-08 12:29:59 +01:00