mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-30 23:36:26 -05:00
59cb258409
* 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&
23 lines
435 B
C++
23 lines
435 B
C++
// 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
|