documented file access functions

This commit is contained in:
mariob92
2024-09-09 19:04:59 +02:00
parent b77274c9ea
commit 98d6423dfb
13 changed files with 206 additions and 156 deletions

View File

@@ -4,6 +4,8 @@
#include <ultra64.h>
#include "model.h"
#include "core2/vla.h"
#include "enums.h"
#define MERGE(a, b) a ## b
#define UNK_TYPE(t) t
@@ -549,17 +551,17 @@ typedef struct {
//Struct60s moved to top
typedef struct{
void *unk0;
void *unk4;
void *unk8; //start_ptr
void *unkC; //current_ptr
void *unk10; //end_ptr
s32 unk14;
typedef struct file_s {
void *asset_base_ptr;
void *asset_current_ptr;
void *base_ptr;
void *current_ptr;
void *end_ptr;
enum file_mode_e mode;
u8 pad18[0x64];
s32 unk7C;
s32 unk80;
}Struct61s; //file stream
s32 last_expected; // used in file_isNextByteExpected
s32 unk80; // always set to -1 and never used
} File;
typedef struct {
s16 unk0;