Commit graph

29801 commits

Author SHA1 Message Date
Unknown W. Brackets
d376e67f87 Common: Cleanup some Path constructions. 2021-05-14 22:48:04 -07:00
Unknown W. Brackets
2a9170a2ea http: Use Path for the download file. 2021-05-14 22:46:03 -07:00
Unknown W. Brackets
ed2ade4e22 headless: Correct tests. 2021-05-14 22:44:05 -07:00
Henrik Rydgård
89ea9625a5 Revert gradle update (investigating build server issue)
This reverts commit 2987b8c17a.
2021-05-14 23:01:36 +02:00
Henrik Rydgård
81b5e080ff
Merge pull request #14436 from hrydgard/path-struct
Introduce Path, start using it all over the place.
2021-05-14 21:58:17 +02:00
Henrik Rydgård
0cd7af44f1 Fix ZipAssetReader file listing. Fixes post shaders on Android 2021-05-13 11:49:33 +02:00
Henrik Rydgård
274be61339 Fix crash in homebrew store after installing game 2021-05-13 11:08:38 +02:00
Henrik Rydgård
5cd565d327 Fix path bug installing homebrew 2021-05-13 11:08:27 +02:00
Henrik Rydgård
ea5b3b1c09 Minor error message improvement 2021-05-13 10:39:17 +02:00
Henrik Rydgård
cbbe458829 UWP iso-loading fix
Having override:// as a fake file name was no good, Path would remove
one slash.
2021-05-13 10:39:17 +02:00
Unknown W. Brackets
66b7e21676 GameManager: Base isDir off of zipped file name. 2021-05-13 10:39:17 +02:00
Henrik Rydgård
4d344f556a Additional feedback. 2021-05-13 10:39:17 +02:00
Henrik Rydgård
40ab92fe7b Remove unused function GetHostPath from filesystems 2021-05-13 10:39:17 +02:00
Henrik Rydgård
9c66f81cbc Address additional feedback 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
8727679353 Clean up PathBrowser a bit
Fix UWP build

Fix booting homebrew.

Qt buildfix
2021-05-13 10:39:16 +02:00
Henrik Rydgård
2e16e83159 It never ends... 2021-05-13 10:39:16 +02:00
Henrik Rydgård
a40b1dec5f Use Path for fullName in dirlisting. Bugfixes.
Buildfixes

UWP: Buildfix.

headless: Buildfix.

Common: Buildfix.

iOS: Buildfixes.

libretro: Buildfix.

Qt: Buildfix.
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
b7fe72bfc9 Load IniFile from Path
Buildfixing
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
2987b8c17a Update gradle again, for Android Studio 4.2 2021-05-13 10:31:52 +02:00
Unknown W. Brackets
e725eddf13 CPUDetect: Ensure we never get zero cores. 2021-05-11 22:02:42 -07:00
Unknown W. Brackets
92ace6716a Common: Fix read of special files with fake size.
On some Linux systems, /sys/ files report a size of 4096, but actually
have less content.
2021-05-11 21:57:36 -07:00
Unknown W. Brackets
6c00b5c6cd Merge pull request #14451 from SeanMcG.
Patches to fix recent regressions with CPUDetect && FileUtils.
2021-05-11 21:56:27 -07:00
Sean McGovern
9e106e1d3d FileUtil: check for errors after a fread() in ReadFileToString() 2021-05-11 23:56:45 -04:00
Sean McGovern
4cc34e384c CPUDetect: saturate lower bound of CPU count to 1 2021-05-11 23:56:45 -04:00
Sean McGovern
328074e9bc CPUDetect: prevent a divide-by-zero when ParseCPUList() fails 2021-05-11 23:56:45 -04:00
Unknown W. Brackets
36549a960f Common: Fix dir listing extension filter.
Oops.  Also correct std::move() usage, which assumed it cleared the
source string.
2021-05-10 21:28:51 -07:00
Unknown W. Brackets
b3ce171523 Common: Correct ReadFileToString() with no size.
If SEEK_END returns an error, just read bit by bit.  Also remove the
unnecessary temp buffer.
2021-05-10 18:29:06 -07:00
Henrik Rydgård
d775bf4e4c
Merge pull request #14442 from unknownbrackets/path-extension
Update path extension and PSP/GAME/ handling
2021-05-10 21:05:05 +02:00
Henrik Rydgård
7141a01a27
Merge pull request #14443 from unknownbrackets/libzip
Update libzip to 1.7.3
2021-05-10 09:13:44 +02:00
Henrik Rydgård
b89a27d587
Merge pull request #14441 from unknownbrackets/path-cpp-file
Remove File::OpenCPPFile()
2021-05-10 09:12:16 +02:00
Unknown W. Brackets
ba4fb398ca UWP: Order includes, avoid file attrs to buildfix.
Not sure why CREATEFILE2_EXTENDED_PARAMETERS isn't being found.
2021-05-09 21:56:34 -07:00
Unknown W. Brackets
18a51b8e97 Update libzip to 1.7.3. 2021-05-09 20:45:53 -07:00
Unknown W. Brackets
f947aa4844 Common: Remove OpenCPPFile(). 2021-05-09 20:21:37 -07:00
Unknown W. Brackets
9d8f22efd0 CPUDetect: Avoid usage of OpenCPPFile().
These are just /proc/, so not content files, but safer to remove all
OpenCPPFile() usage.
2021-05-09 20:21:37 -07:00
Unknown W. Brackets
774b0e07e0 Common: Cleanup AssetReader extension filter. 2021-05-09 17:57:07 -07:00
Henrik Rydgård
74a652491c Common: Update path browser extension handling. 2021-05-09 17:56:05 -07: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
Henrik Rydgård
ac68dac029 Loaders: Avoid fileToStart compare with "". 2021-05-09 17:38:39 -07:00
Henrik Rydgård
a40bb2eaa1 headless: Avoid empty string compares for mountIso. 2021-05-09 17:24:04 -07:00
Henrik Rydgård
939dd200c3 Loaders: Remove fileLoader->Extension(). 2021-05-09 17:17:13 -07:00
Henrik Rydgård
9480b6672b Loaders: Rename Path() to GetPath().
Path is going to be a struct name.
2021-05-09 17:10:14 -07:00
Unknown W. Brackets
2f1cfd993c Cheats: Avoid OpenCPPFile for cheat import.
This code is a mess, just trying to keep it the same for now.
2021-05-09 17:00:48 -07:00
Unknown W. Brackets
0f3f74408f Cheats: Parse files using C files for Path compat. 2021-05-09 17:00:48 -07:00
Unknown W. Brackets
8a0adfde33 headless: Avoid C++ files for Path support.
Not critical for Android paths, but better if they work.
2021-05-09 17:00:48 -07:00
Unknown W. Brackets
8544bd0c3e Windows: Avoid C++ files for consistency.
There's already the mingw thing, and we're avoiding these for Android
paths too.  Let's be consistent.
2021-05-09 17:00:48 -07:00
Unknown W. Brackets
fada6583c9 Core: Fix virtual disc index reading.
Otherwise it thought the newline was part of the path.
2021-05-09 17:00:48 -07:00