From abbb79f92a30bb61c2dea8ef8e5687027ff15699 Mon Sep 17 00:00:00 2001 From: Joel16 Date: Sun, 28 Jan 2018 10:01:54 -0600 Subject: [PATCH] Update ShortName --- libctru/include/3ds/services/fs.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libctru/include/3ds/services/fs.h b/libctru/include/3ds/services/fs.h index 8db6c15..21db6bc 100644 --- a/libctru/include/3ds/services/fs.h +++ b/libctru/include/3ds/services/fs.h @@ -156,11 +156,20 @@ typedef enum DIRECTORY_ACTION_UNKNOWN = 0, } FS_DirectoryAction; +/// Short name data. +typedef struct +{ + char body[0xA]; ///< The part other than the 8.3 format extension. + char ext[4]; ///< The 8.3 format extension. + bool valid; ///< Short filename validity. + u8 padding; +} ShortName; + /// Directory entry. typedef struct { u16 name[0x106]; ///< UTF-16 directory name. - char shortName[0x0A]; ///< File name. + ShortName shortName; ///< File name. char shortExt[0x04]; ///< File extension. u8 valid; ///< Valid flag. (Always 1) u8 reserved; ///< Reserved.