mirror of
https://github.com/pret/pmd-red.git
synced 2026-03-27 04:25:20 -05:00
* decompile last function in pokemon_1.s * some pokemon related decomp * more decomp * decomp another function * decompile function * another one * decompile GetPokemonLevelData * decompile more * more decomp * more structure and decomp * decomp another function (need to do some renaming) * rename some stuff * I cant do anything without committing these 2 files
43 lines
885 B
C
43 lines
885 B
C
#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 UnkFileStruct1
|
|
{
|
|
/* 0x0 */ u32 unk0;
|
|
/* 0x4 */ u32 unk4;
|
|
};
|
|
|
|
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);
|
|
u32 DecompressATFile(char *result, s32 resultLength, struct OpenedFile *file);
|
|
void CloseFile(struct OpenedFile *openedFile);
|
|
|
|
#endif //GUARD_FILE_SYSTEM_H
|