mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-16 12:20:04 +00:00
76b2313b25
This check was preventing files with the Write or Append file access modes from being created, as per the documented behavior in FileAccessMode. This amends the check to test for the existence of a filesystem object prior to checking whether it is a regular file. Thanks to liushuyu for pointing out that removing the check altogether would not guard against attempting to open non-regular files such as directories, symlinks, FIFO (pipes), sockets, block devices, or character devices. The documentation has also been updated for these functions to clarify that a file refers to a regular file. |
||
---|---|---|
.. | ||
file.cpp | ||
file.h | ||
fs_paths.h | ||
fs_types.h | ||
fs_util.cpp | ||
fs_util.h | ||
fs.cpp | ||
fs.h | ||
path_util.cpp | ||
path_util.h |