From 91c6c244007944ffcd5da2e42b1a5221b0ce2074 Mon Sep 17 00:00:00 2001 From: scnorton Date: Sun, 21 Jan 2018 16:51:04 -0500 Subject: sub_8006218 --- include/code_800558C.h | 6 ++++++ include/file_system.h | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 include/code_800558C.h create mode 100644 include/file_system.h (limited to 'include') diff --git a/include/code_800558C.h b/include/code_800558C.h new file mode 100644 index 0000000..be974cc --- /dev/null +++ b/include/code_800558C.h @@ -0,0 +1,6 @@ +#ifndef GUARD_code_800558C_H +#define GUARD_code_800558C_H + +extern u32 gUnknown_203B078; + +#endif //GUARD_code_800558C_H diff --git a/include/file_system.h b/include/file_system.h new file mode 100644 index 0000000..360f7ac --- /dev/null +++ b/include/file_system.h @@ -0,0 +1,34 @@ +#ifndef GUARD_FILE_SYSTEM_H +#define GUARD_FILE_SYSTEM_H + +struct File +{ + char *name; + u8 *data; +}; + +struct OpenedFile +{ + struct File *file; + u8 *data; +}; + +struct FileArchive +{ + char magic[8]; + s32 count; + struct File *entries; +}; + +struct SiroArchive +{ + u32 magic; + u8 *data; +}; + +struct OpenedFile *OpenFile(const char *filename, const struct FileArchive *arc); +u8 *GetFileDataPtr(struct OpenedFile *openedFile, int unused); +struct OpenedFile *OpenFileAndGetFileDataPtr(const char *filename, const struct FileArchive *arc); +struct OpenedFile *Call_OpenFileAndGetFileDataPtr(const char *filename, const struct FileArchive *arc); + +#endif //GUARD_FILE_SYSTEM_H -- cgit v1.2.3 From 8bff04787167a733caa74c0b22dcd332b391f54d Mon Sep 17 00:00:00 2001 From: scnorton Date: Sun, 21 Jan 2018 17:12:02 -0500 Subject: through sub_80063D8 --- include/code_800B540.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 include/code_800B540.h (limited to 'include') diff --git a/include/code_800B540.h b/include/code_800B540.h new file mode 100644 index 0000000..050998e --- /dev/null +++ b/include/code_800B540.h @@ -0,0 +1,6 @@ +#ifndef GUARD_code_800B540_H +#define GUARD_code_800B540_H + +void sub_800CDA8(int a0); + +#endif //GUARD_code_800B540_H -- cgit v1.2.3 From 192ee78bb96bae8dc8316cdd9edf2112ad2d1777 Mon Sep 17 00:00:00 2001 From: scnorton Date: Sun, 21 Jan 2018 17:48:35 -0500 Subject: through sub_8006438 --- include/code_800558C.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/code_800558C.h b/include/code_800558C.h index be974cc..e1b3432 100644 --- a/include/code_800558C.h +++ b/include/code_800558C.h @@ -1,6 +1,6 @@ #ifndef GUARD_code_800558C_H #define GUARD_code_800558C_H -extern u32 gUnknown_203B078; +extern void *gUnknown_203B078; #endif //GUARD_code_800558C_H -- cgit v1.2.3