Start decompiling some code

This commit is contained in:
gamemasterplc 2023-11-23 08:42:06 -06:00
parent 2e79185e91
commit 41f0ffb565
5 changed files with 196 additions and 12 deletions

View file

@ -15,14 +15,33 @@ typedef struct Vec3f {
f32 z;
} Vec3f;
typedef struct unkStruct145A98 {
s16 unk_00;
char unk_02[10];
s16 unk_0C;
char unk_0E[6];
u8 unk_14;
char unk_15[0x53];
} unkStruct145A98; // sizeof 0x68
typedef struct jump_buf {
u32 lr;
u32 cr;
u32 sp;
u32 r2;
u32 pad;
u32 regs[19];
double flt_regs[19];
} jmp_buf;
typedef struct process {
struct process *next;
struct process *prev;
struct process *child;
struct process *parent;
struct process *next_child;
struct process *last_child;
void *heap;
u16 exec;
u16 stat;
u16 prio;
s32 sleep_time;
void *base_sp;
jmp_buf jump;
void (*dtor)(void);
void *user_data;
} Process;
typedef struct unkStruct1D3B44 {
struct unkStruct1D3B44 *prev;

View file

@ -4,9 +4,6 @@
#include "types.h"
#include "common_structs.h"
void* HuPrcCreate(void (*), s32, s32, s32);
void HuPrcSleep(s32, f32);
void HuPrcVSleep(void);
void Hu3DBGColorSet(u8, u8, u8);
void Hu3DCameraCreate(s16);
void Hu3DCameraPerspectiveSet(s16, f32, f32, f32, f32);
@ -43,6 +40,9 @@ s32 HuMemUsedMemoryBlockGet(void *heap_ptr);
s32 HuMemMemoryAllocSizeGet(s32 size);
void HuMemHeapDump(void *heap_ptr, s16 status);
Process *HuPrcCreate(void (*func)(void), u16 prio, s32 stack_size, s32 extra_size);
void HuPrcSleep(s32 time);
void HuPrcVSleep(void);
#endif