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 +++++++++++------ include/sound.h | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) (limited to 'include') 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 *); diff --git a/include/sound.h b/include/sound.h index 0a4fc4ed..44bcba99 100644 --- a/include/sound.h +++ b/include/sound.h @@ -7,7 +7,7 @@ struct SoundData { - struct SDATHeader header; + struct SDATFileMgr header; void * unk_00090; u8 unk_00094[0xBBC00]; u32 unk_BBC94[9]; -- cgit v1.2.3