summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/mode.h
blob: c952056682797ad30aa797cbd29c21f3dcfec8c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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,
    ReadWrite = 3,
    Append = 4,
    WriteAppend = 6,
};

inline u32 operator&(Mode lhs, Mode rhs) {
    return static_cast<u32>(lhs) & static_cast<u32>(rhs);
}

} // namespace FileSys