summaryrefslogtreecommitdiff
path: root/src/core/file_sys/mode.h
diff options
context:
space:
mode:
authorGravatar Zach Hilman2018-07-23 22:40:35 -0400
committerGravatar bunnei2018-07-23 19:40:35 -0700
commit59cb258409c5cbd6cdc9cc6a6f8e858603924a2b (patch)
treec024d285fe63daae9d73ef07800349a065768672 /src/core/file_sys/mode.h
parentMerge pull request #787 from bunnei/tlds (diff)
downloadyuzu-59cb258409c5cbd6cdc9cc6a6f8e858603924a2b.tar.gz
yuzu-59cb258409c5cbd6cdc9cc6a6f8e858603924a2b.tar.xz
yuzu-59cb258409c5cbd6cdc9cc6a6f8e858603924a2b.zip
VFS Regression and Accuracy Fixes (#776)
* Regression and Mode Fixes * Review Fixes * string_view correction * Add operator& for FileSys::Mode * Return std::string from SanitizePath * Farming Simulator Fix * Use != With mode operator&
Diffstat (limited to 'src/core/file_sys/mode.h')
-rw-r--r--src/core/file_sys/mode.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/file_sys/mode.h b/src/core/file_sys/mode.h
index b4363152a..c95205668 100644
--- a/src/core/file_sys/mode.h
+++ b/src/core/file_sys/mode.h
@@ -11,7 +11,13 @@ namespace FileSys {
11enum class Mode : u32 { 11enum class Mode : u32 {
12 Read = 1, 12 Read = 1,
13 Write = 2, 13 Write = 2,
14 ReadWrite = 3,
14 Append = 4, 15 Append = 4,
16 WriteAppend = 6,
15}; 17};
16 18
19inline u32 operator&(Mode lhs, Mode rhs) {
20 return static_cast<u32>(lhs) & static_cast<u32>(rhs);
21}
22
17} // namespace FileSys 23} // namespace FileSys