summaryrefslogtreecommitdiff
path: root/include/sdat.h
diff options
context:
space:
mode:
authorCleverking2003 <30466983+Cleverking2003@users.noreply.github.com>2020-06-25 21:45:38 +0300
committerGitHub <noreply@github.com>2020-06-25 21:45:38 +0300
commit512e864e3bb830d50dc7fe372cccc254a75e4a5a (patch)
tree0ab627e6892df75aff99f3ad17b7ad8ee75f00f7 /include/sdat.h
parenta2f8c35e864703e4264e308cd26aec3d612d863b (diff)
parent80ce402f5f541f01d7ded6da60e38eebbf1f9f88 (diff)
Merge branch 'master' into master
Diffstat (limited to 'include/sdat.h')
-rw-r--r--include/sdat.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/sdat.h b/include/sdat.h
new file mode 100644
index 00000000..70522a3d
--- /dev/null
+++ b/include/sdat.h
@@ -0,0 +1,42 @@
+#ifndef GUARD_LIBSDAT_H
+#define GUARD_LIBSDAT_H
+
+struct SDATHeader
+{
+ // Generic header
+ char magic[4];
+ u16 bom;
+ u16 version;
+ u32 filesize;
+ u16 header_size;
+ u16 section_count;
+ // SDAT chunks
+ u32 symb_offset, symb_size;
+ u32 info_offset, info_size;
+ u32 fat_offset, fat_size;
+ u32 file_offset, file_size;
+ u32 unk_00030;
+ FSFile file; // 00034
+ FSFileID fileID; // 7C
+ u32 unk_00084;
+ u32 unk_00088;
+ void * unk_0008C;
+};
+
+void FUN_020C01D0(void);
+void * FUN_020C2A94(void *, u32);
+void FUN_020C26F8(struct SDATHeader *, char *, void *, u32);
+void FUN_020C39CC(void *);
+void FUN_020C01A0(void);
+int FUN_020C290C(void *);
+void FUN_020C2828(void *, int);
+BOOL FUN_020C36A8(u32 *, void *);
+BOOL FUN_020C3674(u32 *, void *);
+BOOL FUN_020C35E0(u32 *, u32 *, void *);
+BOOL FUN_020C360C(u32 *, void *);
+BOOL FUN_020C3640(u32 *, void *);
+void FUN_020C0F80(u32 *);
+void FUN_020C1040(int, int);
+void FUN_020C0F68(void);
+
+#endif //GUARD_LIBSDAT_H