summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/fs_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/file_sys/fs_file.h')
-rw-r--r--src/core/file_sys/fs_file.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/core/file_sys/fs_file.h b/src/core/file_sys/fs_file.h
index 35f66b959..4fb77e8db 100644
--- a/src/core/file_sys/fs_file.h
+++ b/src/core/file_sys/fs_file.h
@@ -1,12 +1,14 @@
-// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
+#include "common/common_types.h"
+
namespace FileSys {
struct ReadOption {
- u32 _value;
+ u32 value;
static const ReadOption None;
};
@@ -18,7 +20,7 @@ enum ReadOptionFlag : u32 {
inline constexpr const ReadOption ReadOption::None = {ReadOptionFlag_None};
inline constexpr bool operator==(const ReadOption& lhs, const ReadOption& rhs) {
- return lhs._value == rhs._value;
+ return lhs.value == rhs.value;
}
inline constexpr bool operator!=(const ReadOption& lhs, const ReadOption& rhs) {
@@ -33,10 +35,10 @@ enum WriteOptionFlag : u32 {
};
struct WriteOption {
- u32 _value;
+ u32 value;
constexpr inline bool HasFlushFlag() const {
- return _value & WriteOptionFlag_Flush;
+ return value & WriteOptionFlag_Flush;
}
static const WriteOption None;
@@ -47,7 +49,7 @@ inline constexpr const WriteOption WriteOption::None = {WriteOptionFlag_None};
inline constexpr const WriteOption WriteOption::Flush = {WriteOptionFlag_Flush};
inline constexpr bool operator==(const WriteOption& lhs, const WriteOption& rhs) {
- return lhs._value == rhs._value;
+ return lhs.value == rhs.value;
}
inline constexpr bool operator!=(const WriteOption& lhs, const WriteOption& rhs) {