Commit graph

29892 commits

Author SHA1 Message Date
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
Unknown W. Brackets
df8e80d4fb Common: Use C FILE for log file output.
Not strictly needed for Android paths, but may be convenient.
2021-05-09 17:00:48 -07:00
Henrik Rydgård
2999e1cb86 Core: Remove some uses of OpenCPPFile. 2021-05-09 17:00:48 -07:00
Henrik Rydgård
b1a53d493e
Merge pull request #14438 from unknownbrackets/debugger-delayslot
Core: Leave delay slot when re-entering jit
2021-05-09 18:42:33 +02:00
Unknown W. Brackets
e0afdfe9be Core: Leave delay slot when re-entering jit.
If stepping, we may get into a delay slot within interpreted code, and
then try to run (i.e. Step Out), which won't clear the delay slot
properly.

This can cause weird behavior when interp is used again later, in addition
to immediate wrong branching behavior.
2021-05-09 08:52:38 -07:00
Henrik Rydgård
96c109e6ce
Merge pull request #14435 from unknownbrackets/analog-limit
Ctrl: Apply analog limiter to real sticks too
2021-05-08 23:05:49 +02:00
Unknown W. Brackets
63edd037d7 Ctrl: Apply analog limiter to real sticks too.
Previously only applied to virtual analog by button, but there's no
particular good reason for that.
2021-05-08 13:34:07 -07:00
Henrik Rydgård
0b79c087ad
Merge pull request #14433 from unknownbrackets/hwtess
GPU: Correctly initialize HW tessellation support
2021-05-08 20:39:59 +02:00
Unknown W. Brackets
3304814fd6 GPU: Minor cleanup duplicate header/conditions. 2021-05-08 09:12:22 -07:00
Unknown W. Brackets
de46b0998a GPU: Correctly initialize HW tessellation support.
Oops, shouldn't call a virtual in a constructor.
2021-05-08 09:10:23 -07:00