diff options
author | scnorton <scnorton@biociphers.org> | 2018-01-21 16:51:04 -0500 |
---|---|---|
committer | scnorton <scnorton@biociphers.org> | 2018-01-21 16:51:04 -0500 |
commit | 91c6c244007944ffcd5da2e42b1a5221b0ce2074 (patch) | |
tree | a9064d7d8baa2c52837e204a77ad3e207c8745be /include/file_system.h | |
parent | 66201fa6ab8f91fbebe24c6ea5904b5fb7c652f2 (diff) |
sub_8006218
Diffstat (limited to 'include/file_system.h')
-rw-r--r-- | include/file_system.h | 34 |
1 files changed, 34 insertions, 0 deletions
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 |