summaryrefslogtreecommitdiff
path: root/include/sdat.h
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-06-25 15:26:31 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2020-06-25 15:26:31 -0400
commit8c34579a17e672c05e46275e938d8d8d73232d79 (patch)
treec9041081dba778a674c5753b112eefd4b7f94069 /include/sdat.h
parent4ab04286637982c0f4938190ca363c2f7c9b0e3a (diff)
Refactor sdat.h structs and name some routines
Diffstat (limited to 'include/sdat.h')
-rw-r--r--include/sdat.h17
1 files changed, 11 insertions, 6 deletions
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 *);