yuzu/src/core/file_sys/mode.h

25 lines
500 B
C
Raw Normal View History

2020-12-28 19:15:37 +04:00
// Copyright 2018 yuzu emulator team
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include "common/common_funcs.h"
#include "common/common_types.h"
namespace FileSys {
enum class Mode : u32 {
2021-05-08 11:49:31 +04:00
Read = 1 << 0,
Write = 1 << 1,
2020-12-28 19:15:37 +04:00
ReadWrite = Read | Write,
2021-05-08 11:49:31 +04:00
Append = 1 << 2,
ReadAppend = Read | Append,
2020-12-28 19:15:37 +04:00
WriteAppend = Write | Append,
2021-05-08 11:49:31 +04:00
All = ReadWrite | Append,
2020-12-28 19:15:37 +04:00
};
DECLARE_ENUM_FLAG_OPERATORS(Mode)
} // namespace FileSys