Albert Liu
46ff2b553d
CDImage: Add support for loading PBP images
2021-03-15 20:06:39 -07:00
Connor McLaughlin
627f147a90
Support compiling for FreeBSD
2021-03-07 19:35:02 +10:00
Connor McLaughlin
322f1492b2
FileSystem: Add SanitizeFilename() overload for std::string
2021-02-22 12:22:28 +10:00
Connor McLaughlin
3ab7e140ee
FileSystem: Add some overloads for FILE*
2021-02-19 01:37:56 +10:00
Connor McLaughlin
cacf12c209
FileSystem: Migrate component extractors to std::string_view
2021-02-19 01:37:56 +10:00
Connor McLaughlin
61d0af30a2
FileSystem: Add read/write binary stream helpers
2021-01-31 17:10:27 +10:00
Connor McLaughlin
5875b738dc
Common/FileSystem: Add a helper to get root directory list
2021-01-31 17:10:27 +10:00
Connor McLaughlin
f61427017d
GameList: Remove exe/psf extensions from titles in game list
2021-01-24 17:37:09 +10:00
Michael Forney
4bca193ee1
FileSystem: Include <limits.h> for PATH_MAX
2020-12-26 00:47:02 +10:00
Michael Forney
7a40a843d4
Common/FileSystem: Fix misspelling of 'separator'
2020-12-26 00:47:02 +10:00
Michael Forney
d0398c8a83
Common/FileSystem: Fix canonicalization of paths beginning with ./
...
If we don't skip past the following separator when the destination
is empty, then `./file` gets canonicalized as `/file`.
Also, consider the case where we end up with an empty string (for
example, from `foo/..`). Canonicalize this as `.`.
2020-12-26 00:47:02 +10:00
Connor McLaughlin
f21d901cf1
Common/FileSystem: Fix macOS build
2020-11-28 00:58:46 +10:00
Connor McLaughlin
744629e9a8
Common/FileSystem: Fix modification time not being set in find
...
Fixes game list list always re-scanning on Linux/Android.
2020-11-28 00:14:45 +10:00
Connor McLaughlin
4a482875ca
Common/FileSystem: Add helpers for ByteStream
2020-11-28 00:14:45 +10:00
Connor McLaughlin
6624660b0d
Common/FileSystem: Fix a compile error on macOS
2020-10-18 14:54:38 +10:00
C.W. Betts
152ccd5917
Fix stat64 failure on Apple Silicon: just use the (not deprecated on OS X) stat (which is 64-bit since 10.6 via linking trickery, and always 64-bit on 64-bit OSes).
2020-10-02 03:23:43 -06:00
Connor McLaughlin
f1086b18f9
FileSystem: Remove heap allocations from FileExists/DirectoryExists
2020-09-24 00:31:44 +10:00
Connor McLaughlin
cd0199a07a
FileSystem: Fix size being unfilled on Linux
...
Fixes BIOS detection.
2020-09-23 12:15:25 +10:00
Connor McLaughlin
e8e461c0a7
FileSystem: Fix GetProgramPath() sometimes returning stale paths
...
See https://social.msdn.microsoft.com/Forums/windowshardware/en-US/4b7b3884-d0bb-4812-bc18-2078c61d4b90/queryfullprocessimagename-gives-wrong-path-for-renamed-directory?forum=windowsgeneraldevelopmentissues
2020-09-21 01:20:20 +10:00
kwyxz
31695c4ff7
Haiku port of duckstation libretro core ( #716 )
...
* Haiku build 1st attempt
* fix load on Haiku
* Removed debugging flags
* Added a couple ifndef
2020-08-22 13:20:37 +10:00
Connor McLaughlin
512a8b2b39
FileSystem: Make more functions UTF-8 compatible on Windows
2020-08-06 22:07:43 +10:00
Connor McLaughlin
a7dbb9ab28
CDImage: Work around cue parser requiring new line at end
2020-08-05 03:14:06 +10:00
Connor McLaughlin
ede8de92f6
FileSystem: Use wide strings for FindFiles and StatFile on Windows
2020-08-01 14:00:58 +10:00
Connor McLaughlin
8b0c3f0dc8
FileSystem: Use wide strings for fopen on Windows
2020-07-31 16:04:06 +10:00
Connor McLaughlin
266d70c629
Common/FileSystem: Add IsAbsolutePath() and tests
2020-07-23 02:35:37 +10:00
Connor McLaughlin
84d4423719
Merge pull request #564 from lioncash/leak
...
file_system: Prevent resource leaks in DeleteDirectory()
2020-06-24 01:31:52 +10:00
Lioncash
83a01c27a2
file_system: Prevent resource leaks in DeleteDirectory()
...
We need to remember to close the search handle in the error cases.
2020-06-23 06:13:54 -04:00
Lioncash
292a0a6800
file_system: Correct duplicate conditionals in CreateDirectory()
2020-06-23 06:09:38 -04:00
Connor McLaughlin
bd164d2735
Common/FileSystem: Add {Read,Write}BinaryFile helpers
2020-06-19 00:16:59 +10:00
Connor McLaughlin
6a03bb2d15
HostInterface: Drop std::filesystem requirement
2020-04-12 21:06:33 +10:00
Connor McLaughlin
fd2ca2927e
Common/FileSystem: Fix recursive directory creation
2020-02-15 23:19:27 +09:00
Connor McLaughlin
f0910dc948
Common/FileSystem: Include fix
2020-02-15 11:00:54 +09:00
Connor McLaughlin
f805764fea
Common/FileSystem: More OSX fixes..
2020-02-15 10:50:33 +09:00
Connor McLaughlin
2ac8f7a6ac
Common/FileSystem: uint32 -> u32
2020-02-15 10:34:48 +09:00
Connor McLaughlin
4681f9d744
Common/FileSystem: Don't include malloc.h on macOS
2020-02-15 10:12:55 +09:00
Connor McLaughlin
23c8a5588d
Add macOS to some Linux/Android-only-isms
2020-02-14 22:58:18 +09:00
Connor McLaughlin
288b680e07
FileSystem: Add ReplaceExtension() helper
2020-01-30 16:22:05 +10:00
Connor McLaughlin
7afb79aee6
Common: Add FileSystem::{Get,Set}WorkingDirectory functions
2020-01-24 14:50:58 +10:00
Connor McLaughlin
de4e45a433
Common: Add a function to get the path to the running program
2020-01-24 14:50:57 +10:00
Connor McLaughlin
71c1e243fe
Remove YBaseLib dependency
2020-01-10 13:40:53 +10:00