summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/mode.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-08-03 13:11:07 +0200
committerLioncash <mathew1800@gmail.com>2020-08-03 13:52:36 +0200
commit2b8ae009a0871b2d2293e26ca972d4eccb47d266 (patch)
tree001161525f6ebfaab195cfa9584e1aaaf5110735 /src/core/file_sys/mode.h
parentMerge pull request #4437 from lioncash/ptr (diff)
downloadyuzu-2b8ae009a0871b2d2293e26ca972d4eccb47d266.tar
yuzu-2b8ae009a0871b2d2293e26ca972d4eccb47d266.tar.gz
yuzu-2b8ae009a0871b2d2293e26ca972d4eccb47d266.tar.bz2
yuzu-2b8ae009a0871b2d2293e26ca972d4eccb47d266.tar.lz
yuzu-2b8ae009a0871b2d2293e26ca972d4eccb47d266.tar.xz
yuzu-2b8ae009a0871b2d2293e26ca972d4eccb47d266.tar.zst
yuzu-2b8ae009a0871b2d2293e26ca972d4eccb47d266.zip
Diffstat (limited to 'src/core/file_sys/mode.h')
-rw-r--r--src/core/file_sys/mode.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/file_sys/mode.h b/src/core/file_sys/mode.h
index c95205668..2b4f21073 100644
--- a/src/core/file_sys/mode.h
+++ b/src/core/file_sys/mode.h
@@ -4,6 +4,7 @@
#pragma once
+#include "common/common_funcs.h"
#include "common/common_types.h"
namespace FileSys {
@@ -11,13 +12,11 @@ namespace FileSys {
enum class Mode : u32 {
Read = 1,
Write = 2,
- ReadWrite = 3,
+ ReadWrite = Read | Write,
Append = 4,
- WriteAppend = 6,
+ WriteAppend = Write | Append,
};
-inline u32 operator&(Mode lhs, Mode rhs) {
- return static_cast<u32>(lhs) & static_cast<u32>(rhs);
-}
+DECLARE_ENUM_FLAG_OPERATORS(Mode)
} // namespace FileSys