summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/fs_filesystem.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-02-22 18:34:47 +0100
committerGitHub <noreply@github.com>2024-02-22 18:34:47 +0100
commitd12d9dad4096af6280c6c418cf36a2faacede102 (patch)
treeba52bf26efd8b2f7bf282b0564a68870022cccb7 /src/core/file_sys/fs_filesystem.h
parentMerge pull request #13000 from liamwhite/skip-null-memory (diff)
parentAddress review comments pt. 2 (diff)
downloadyuzu-d12d9dad4096af6280c6c418cf36a2faacede102.tar
yuzu-d12d9dad4096af6280c6c418cf36a2faacede102.tar.gz
yuzu-d12d9dad4096af6280c6c418cf36a2faacede102.tar.bz2
yuzu-d12d9dad4096af6280c6c418cf36a2faacede102.tar.lz
yuzu-d12d9dad4096af6280c6c418cf36a2faacede102.tar.xz
yuzu-d12d9dad4096af6280c6c418cf36a2faacede102.tar.zst
yuzu-d12d9dad4096af6280c6c418cf36a2faacede102.zip
Diffstat (limited to 'src/core/file_sys/fs_filesystem.h')
-rw-r--r--src/core/file_sys/fs_filesystem.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/core/file_sys/fs_filesystem.h b/src/core/file_sys/fs_filesystem.h
index 7f237b7fa..329b5aca5 100644
--- a/src/core/file_sys/fs_filesystem.h
+++ b/src/core/file_sys/fs_filesystem.h
@@ -23,6 +23,8 @@ enum class OpenDirectoryMode : u64 {
File = (1 << 1),
All = (Directory | File),
+
+ NotRequireFileSize = (1ULL << 31),
};
DECLARE_ENUM_FLAG_OPERATORS(OpenDirectoryMode)
@@ -36,4 +38,29 @@ enum class CreateOption : u8 {
BigFile = (1 << 0),
};
+struct FileSystemAttribute {
+ u8 dir_entry_name_length_max_defined;
+ u8 file_entry_name_length_max_defined;
+ u8 dir_path_name_length_max_defined;
+ u8 file_path_name_length_max_defined;
+ INSERT_PADDING_BYTES_NOINIT(0x5);
+ u8 utf16_dir_entry_name_length_max_defined;
+ u8 utf16_file_entry_name_length_max_defined;
+ u8 utf16_dir_path_name_length_max_defined;
+ u8 utf16_file_path_name_length_max_defined;
+ INSERT_PADDING_BYTES_NOINIT(0x18);
+ s32 dir_entry_name_length_max;
+ s32 file_entry_name_length_max;
+ s32 dir_path_name_length_max;
+ s32 file_path_name_length_max;
+ INSERT_PADDING_WORDS_NOINIT(0x5);
+ s32 utf16_dir_entry_name_length_max;
+ s32 utf16_file_entry_name_length_max;
+ s32 utf16_dir_path_name_length_max;
+ s32 utf16_file_path_name_length_max;
+ INSERT_PADDING_WORDS_NOINIT(0x18);
+ INSERT_PADDING_WORDS_NOINIT(0x1);
+};
+static_assert(sizeof(FileSystemAttribute) == 0xC0, "FileSystemAttribute has incorrect size");
+
} // namespace FileSys