Format:s32 mfsHFstat(MfsFile handle, MfsStat* stat)
Arguments:
handle File handle stat File information structure pointer
Return value:Error
Function: Obtains file-related information
Description: This function obtains information related to the file specified by handle and returns it to the MfsStat structure specified by stat. The MfsStat structure consists of the following members.
typedef struct st_stat{ u32 size; // File size LEODiskTime time; // Latest update date and time of file u16 attribute; // Attribute u16 dirID; // Directory ID u16 upDirID; // Directory ID of parent directory u8 gameCode[4]; // Game code u8 companyCode[2]; // Company code u8 copyCounter; // Copy counter u8 renewalCounter; // update counter } MfsStat;
Main errors:
MFS_ERR_NO Normal termination MFS_ERR_FATAL File open error The file is not opened. MFS_ERR_DEVICE Device error An error occurred in an internally called Leo function. Since a Leo function error is stored in the variable mfsError, check this variable to perform processing. MFS_ERR_HEADER Header error The header area is corrupted. If it is the RAM area, try to repair it.