2018-07-19 01:07:11 +00: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_types.h"
|
|
|
|
|
|
|
|
namespace FileSys {
|
|
|
|
|
|
|
|
enum class Mode : u32 {
|
|
|
|
Read = 1,
|
|
|
|
Write = 2,
|
2018-07-24 02:40:35 +00:00
|
|
|
ReadWrite = 3,
|
2018-07-19 01:07:11 +00:00
|
|
|
Append = 4,
|
2018-07-24 02:40:35 +00:00
|
|
|
WriteAppend = 6,
|
2018-07-19 01:07:11 +00:00
|
|
|
};
|
|
|
|
|
2018-07-24 02:40:35 +00:00
|
|
|
inline u32 operator&(Mode lhs, Mode rhs) {
|
|
|
|
return static_cast<u32>(lhs) & static_cast<u32>(rhs);
|
|
|
|
}
|
|
|
|
|
2018-07-19 01:07:11 +00:00
|
|
|
} // namespace FileSys
|