summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/fs_filesystem.h
diff options
context:
space:
mode:
authorFearlessTobi <thm.frey@gmail.com>2024-02-19 19:22:51 +0100
committerFearlessTobi <thm.frey@gmail.com>2024-02-19 19:22:51 +0100
commitef5027712413705802d10c797b0f0b66375a9f58 (patch)
tree979cf4d365ca5d7f0e63abdd3ecf476f93d4b21b /src/core/file_sys/fs_filesystem.h
parentAddress review comments (diff)
downloadyuzu-ef5027712413705802d10c797b0f0b66375a9f58.tar
yuzu-ef5027712413705802d10c797b0f0b66375a9f58.tar.gz
yuzu-ef5027712413705802d10c797b0f0b66375a9f58.tar.bz2
yuzu-ef5027712413705802d10c797b0f0b66375a9f58.tar.lz
yuzu-ef5027712413705802d10c797b0f0b66375a9f58.tar.xz
yuzu-ef5027712413705802d10c797b0f0b66375a9f58.tar.zst
yuzu-ef5027712413705802d10c797b0f0b66375a9f58.zip
Diffstat (limited to '')
-rw-r--r--src/core/file_sys/fs_filesystem.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/core/file_sys/fs_filesystem.h b/src/core/file_sys/fs_filesystem.h
index 598b59a74..329b5aca5 100644
--- a/src/core/file_sys/fs_filesystem.h
+++ b/src/core/file_sys/fs_filesystem.h
@@ -38,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