From 38350db4c7086a54c9f7f66a9adf1f79d09b1475 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Thu, 28 May 2020 17:01:20 -0400 Subject: Decompile filesystem.s --- arm9/lib/include/FS_file.h | 54 +++++++++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'arm9/lib/include/FS_file.h') diff --git a/arm9/lib/include/FS_file.h b/arm9/lib/include/FS_file.h index cfb043af..6e4f1cd0 100644 --- a/arm9/lib/include/FS_file.h +++ b/arm9/lib/include/FS_file.h @@ -33,7 +33,7 @@ typedef struct FSDirPos u16 index; u32 pos; } -FSDirPos; +FSDirPos; // size = 0xC typedef struct FSFileID { @@ -138,41 +138,41 @@ FSWriteFileInfo; typedef struct FSFile { - FSFileLink link; - struct FSArchive *arc; - u32 stat; - FSCommandType command; - FSResult error; - OSThreadQueue queue[1]; + FSFileLink link; // 0x00 + struct FSArchive *arc; // 0x08 + u32 stat; // 0xC + FSCommandType command; // 0x10 + FSResult error; // 0x14 + OSThreadQueue queue[1]; // 0x18 union { struct { - u32 own_id; - u32 top; - u32 bottom; - u32 pos; + u32 own_id; // 0x20 + u32 top; // 0x24 + u32 bottom; // 0x28 + u32 pos; // 0x2C } file; struct { - FSDirPos pos; - u32 parent; + FSDirPos pos; // 0x20 + u32 parent; // 0x2C } dir; - } prop; + } prop; // 0x20 union { - FSReadFileInfo readfile; - FSWriteFileInfo writefile; - - FSSeekDirInfo seekdir; - FSReadDirInfo readdir; - FSFindPathInfo findpath; - FSGetPathInfo getpath; - FSOpenFileFastInfo openfilefast; - FSOpenFileDirectInfo openfiledirect; - FSCloseFileInfo closefile; - } arg; -} -FSFile; + FSReadFileInfo readfile; // 0x30 + FSWriteFileInfo writefile; // 0x30 + + FSSeekDirInfo seekdir; // 0x30 + FSReadDirInfo readdir; // 0x30 + FSFindPathInfo findpath; // 0x30 + FSGetPathInfo getpath; // 0x30 + FSOpenFileFastInfo openfilefast; // 0x30 + FSOpenFileDirectInfo openfiledirect; // 0x30 + FSCloseFileInfo closefile; // 0x30 + } arg; // 0x30 +} +FSFile; // size = 0x50 void FS_Init(u32 default_dma_no); BOOL FS_IsAvailable(void); -- cgit v1.2.3