diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-05-08 08:35:17 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-05-08 08:35:17 -0400 |
commit | 1966623ed0516e84d8129e8f22dba502b018bcc3 (patch) | |
tree | a4812ef1183c39e22bada99ecd2b74d9fa184af4 /arm9/lib/include/FS_file.h | |
parent | eb410178e4e33ccd19bee4dcbaee730769f1fb86 (diff) |
Finish FS_command_default.c
Diffstat (limited to 'arm9/lib/include/FS_file.h')
-rw-r--r-- | arm9/lib/include/FS_file.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arm9/lib/include/FS_file.h b/arm9/lib/include/FS_file.h index fdf6c4e2..55825c61 100644 --- a/arm9/lib/include/FS_file.h +++ b/arm9/lib/include/FS_file.h @@ -13,6 +13,8 @@ #define FS_FILE_STATUS_IS_DIR 0x00000020 #define FS_FILE_STATUS_OPERATING 0x00000040 +#define FS_FILE_NAME_MAX 127 + typedef enum FSSeekFileMode { FS_SEEK_SET = 0, @@ -210,4 +212,9 @@ static inline BOOL FS_IsSucceeded(volatile const FSFile * p_file) return (p_file->error == FS_RESULT_SUCCESS) ? TRUE : FALSE; } +static inline BOOL FS_IsDir(volatile const FSFile * p_file) +{ + return (p_file->stat & FS_FILE_STATUS_IS_DIR) ? TRUE : FALSE; +} + #endif //NITRO_FS_FILE_H_ |