diff options
author | nullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com> | 2018-11-20 21:47:18 +0800 |
---|---|---|
committer | nullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com> | 2018-11-20 21:55:23 +0800 |
commit | ed3b066e77ee384110f83b36fb352000e6f1e26e (patch) | |
tree | 082d1bcae43368d49cad8f98c219d3dfa2f3884d /include/file_system.h | |
parent | fbe7d0d3bb9eb3570d5a5f8f611bb41427d06b33 (diff) | |
parent | 192ee78bb96bae8dc8316cdd9edf2112ad2d1777 (diff) |
Merge remote-tracking branch 'PikalaxALT/text'
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 |