Commit graph

68 commits

Author SHA1 Message Date
Stenzek 39f64a03ee Common: Error/FileSystem backports 2023-08-20 12:40:47 +10:00
Stenzek a3c7449749 FileSystem: Fix POSIXLock positioning 2023-01-30 19:26:48 +10:00
Connor McLaughlin 8c7a192128 Misc: Add copyright/license statement to applicable files
Should've did this in the beginning.
2022-12-04 21:03:49 +10:00
Connor McLaughlin 72dfbaf6cc Misc: Backports from PCSX2 UI 2022-10-23 14:49:44 +10:00
Connor McLaughlin ca571f8a78 GameList: Add played time tracker 2022-10-21 21:20:21 +10:00
Connor McLaughlin d9722516c3 GameList: Handle non-extension-suffixed urls based on content type 2022-09-18 13:24:55 +10:00
Connor McLaughlin 7bbacd2392 Misc: Remove unused code 2022-08-22 19:55:38 +10:00
Connor McLaughlin 25d2148ae4 Misc: Necessary emucore changes for Android 2022-08-05 17:05:21 +10:00
Connor McLaughlin 571a773b29 FileSystem: Fix build failure 2022-07-31 17:42:58 +10:00
Connor McLaughlin 97d5d659d3 FileSystem: Fix zeros getting stripped in path 2022-07-31 17:37:21 +10:00
Connor McLaughlin 89659db7ee Path: Unicode handling and tests for SanitizeFileName 2022-07-30 21:46:14 +10:00
Connor McLaughlin 9b22f0564f Misc: Remove backported license text
For anyone trying to start drama, I have copyright over this code and
never signed a CLA, therefore can relicense it how I see fit (in this
case is no license, i.e. no rights, although the entire DuckStation as
is currently distributed is GPLv3).
2022-07-23 13:55:09 +10:00
Connor McLaughlin d2ca454576 Sync filesystem.h/path.h 2022-07-21 17:29:57 +10:00
Connor McLaughlin b5bf3593c4 ByteStream: Move routines from FileSystem to ByteStream 2022-07-21 17:29:57 +10:00
Connor McLaughlin 592a591b5f FileSystem: Get rid of trailing nulls in GetWorkingDirectory() 2021-12-25 14:28:33 +10:00
Connor McLaughlin fca4a2ec28 Common/FileSystem: Fix a couple of warnings from #2716 2021-11-10 13:18:30 +10:00
Connor McLaughlin e45f15ef41 FileSystem: Implement StatFile/FileExists/DirectoryExists for scoped storage 2021-08-18 00:18:03 +10:00
Connor McLaughlin 3847c94a42 FileSystem: Don't treat dotfiles as hidden on Windows 2021-07-21 20:26:00 +10:00
Connor McLaughlin 3be6270b2d ByteStream: Fix atomic updates on external storage with UWP 2021-07-11 19:05:30 +10:00
Connor McLaughlin e8c16056b6 Common/FileSystem: Handle S/R modes for UWP 2021-07-11 19:05:08 +10:00
Connor McLaughlin 03ab18909a Common: Add UWP support for helper classes 2021-07-11 15:20:38 +10:00
Connor McLaughlin 53cabbb134 FileSystem: Add RenamePath() 2021-07-03 16:50:51 +10:00
Connor McLaughlin 911e9a37f1 WIN32 macro -> _WIN32 2021-06-30 14:38:07 +10:00
Connor McLaughlin 350049826f Fix a bunch of compiler warnings 2021-06-04 13:14:30 +10:00
Connor McLaughlin 46d19eeb1f Android: Allow opening/getting files relative to downloads directory 2021-04-24 16:19:13 +10:00
Connor McLaughlin d6d8d21eff Common/FileSystem: Make file functions content URI-aware 2021-04-17 21:52:26 +10:00
Connor McLaughlin e1578be20f Common/FileSystem: Add BuildRelativePath() function 2021-04-17 21:52:26 +10:00
Connor McLaughlin c71f78ffa0 FileSystem: Add 64-bit fseek/ftell wrappers 2021-04-07 18:30:38 +10:00
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