From 8c34579a17e672c05e46275e938d8d8d73232d79 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Thu, 25 Jun 2020 15:26:31 -0400 Subject: Refactor sdat.h structs and name some routines --- include/sdat.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'include/sdat.h') diff --git a/include/sdat.h b/include/sdat.h index 70522a3d..3ba8583c 100644 --- a/include/sdat.h +++ b/include/sdat.h @@ -15,17 +15,22 @@ struct SDATHeader u32 info_offset, info_size; u32 fat_offset, fat_size; u32 file_offset, file_size; - u32 unk_00030; +}; + +struct SDATFileMgr +{ + struct SDATHeader header; + BOOL is_init; FSFile file; // 00034 FSFileID fileID; // 7C - u32 unk_00084; - u32 unk_00088; - void * unk_0008C; + void * fat_p; + void * symb_p; + void * info_p; }; -void FUN_020C01D0(void); +void SDAT_Init(void); void * FUN_020C2A94(void *, u32); -void FUN_020C26F8(struct SDATHeader *, char *, void *, u32); +void SDAT_Open(struct SDATFileMgr *, char *, void *, u32); void FUN_020C39CC(void *); void FUN_020C01A0(void); int FUN_020C290C(void *); -- cgit v1.2.3