summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-06-19 12:25:53 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-06-22 21:07:51 +0200
commit0394893354dc76e3fbbcc149aa677deabb72ee5e (patch)
tree28d1124e114d92b5396a82b1d62b7685ed6927e0 /src/core/file_sys
parentcommon: fs: Amend IsFile check in FileOpen / (Write/Append)StringToFile (diff)
downloadyuzu-0394893354dc76e3fbbcc149aa677deabb72ee5e.tar
yuzu-0394893354dc76e3fbbcc149aa677deabb72ee5e.tar.gz
yuzu-0394893354dc76e3fbbcc149aa677deabb72ee5e.tar.bz2
yuzu-0394893354dc76e3fbbcc149aa677deabb72ee5e.tar.lz
yuzu-0394893354dc76e3fbbcc149aa677deabb72ee5e.tar.xz
yuzu-0394893354dc76e3fbbcc149aa677deabb72ee5e.tar.zst
yuzu-0394893354dc76e3fbbcc149aa677deabb72ee5e.zip
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/vfs_real.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/file_sys/vfs_real.cpp b/src/core/file_sys/vfs_real.cpp
index d0b8fd046..3dad54f49 100644
--- a/src/core/file_sys/vfs_real.cpp
+++ b/src/core/file_sys/vfs_real.cpp
@@ -24,17 +24,12 @@ constexpr FS::FileAccessMode ModeFlagsToFileAccessMode(Mode mode) {
case Mode::Read:
return FS::FileAccessMode::Read;
case Mode::Write:
- return FS::FileAccessMode::Write;
case Mode::ReadWrite:
- return FS::FileAccessMode::ReadWrite;
case Mode::Append:
- return FS::FileAccessMode::Append;
case Mode::ReadAppend:
- return FS::FileAccessMode::ReadAppend;
case Mode::WriteAppend:
- return FS::FileAccessMode::Append;
case Mode::All:
- return FS::FileAccessMode::ReadAppend;
+ return FS::FileAccessMode::ReadWrite;
default:
return {};
}