Merge branch 'main' of https://github.com/Rainchus/mp4-dtk into main
This commit is contained in:
commit
c7189d056b
14 changed files with 731 additions and 198 deletions
|
|
@ -4,5 +4,6 @@
|
|||
#include "types.h"
|
||||
#include "common_structs.h"
|
||||
#include "functions.h"
|
||||
#include "variables.h"
|
||||
|
||||
#endif
|
||||
|
|
@ -15,19 +15,46 @@ 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 unkStruct1D3B44 {
|
||||
struct unkStruct1D3B44 *prev;
|
||||
char unk_04[0x1A];
|
||||
u16 unk_1E;
|
||||
} unkStruct1D3B44; // sizeof ???
|
||||
typedef struct process {
|
||||
struct process *next;
|
||||
struct process *prev;
|
||||
struct process *child;
|
||||
struct process *parent;
|
||||
struct process *next_child;
|
||||
struct process *first_child;
|
||||
void *heap;
|
||||
u16 exec;
|
||||
u16 stat;
|
||||
u16 prio;
|
||||
s32 sleep_time;
|
||||
u32 base_sp;
|
||||
jmp_buf jump;
|
||||
void (*dtor)(void);
|
||||
void *user_data;
|
||||
} Process;
|
||||
|
||||
typedef struct player_config {
|
||||
s16 character;
|
||||
s16 pad_idx;
|
||||
s16 diff;
|
||||
s16 group;
|
||||
s16 iscom;
|
||||
} PlayerConfig;
|
||||
|
||||
typedef struct wipe_state {
|
||||
u8 unk[52];
|
||||
float duration;
|
||||
u8 unk2[20];
|
||||
} WipeState;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -4,10 +4,6 @@
|
|||
#include "types.h"
|
||||
#include "common_structs.h"
|
||||
|
||||
void* HuPrcCreate(void (*), s32, s32, s32);
|
||||
void HuPrcSleep(s32, f32);
|
||||
void HuPrcVSleep(void);
|
||||
s32* HuPrcCurrentGet(void);
|
||||
void Hu3DBGColorSet(u8, u8, u8);
|
||||
void Hu3DCameraCreate(s16);
|
||||
void Hu3DCameraPerspectiveSet(s16, f32, f32, f32, f32);
|
||||
|
|
@ -18,7 +14,8 @@ void* omInitObjMan(s32, s32);
|
|||
void fn_80044920(s16);
|
||||
void fn_80045F74(s16, s32);
|
||||
s32 fn_800578E4(void);
|
||||
void fn_1_26C(void);
|
||||
void fn_80032A58(int arg0);
|
||||
void fn_80035A0C(void);
|
||||
|
||||
void HuDecodeData(void *src, void *dst, u32 size, int decode_type);
|
||||
void HuMemInitAll(void);
|
||||
|
|
@ -44,6 +41,32 @@ s32 HuMemUsedMemoryBlockGet(void *heap_ptr);
|
|||
s32 HuMemMemoryAllocSizeGet(s32 size);
|
||||
void HuMemHeapDump(void *heap_ptr, s16 status);
|
||||
|
||||
void HuPrcInit(void);
|
||||
Process *HuPrcCreate(void (*func)(void), u16 prio, u32 stack_size, s32 extra_size);
|
||||
void HuPrcChildLink(Process *parent, Process *child);
|
||||
void HuPrcChildUnlink(Process *process);
|
||||
Process *HuPrcChildCreate(void (*func)(void), u16 prio, u32 stack_size, s32 extra_size, Process *parent);
|
||||
void HuPrcChildWatch();
|
||||
Process *HuPrcCurrentGet(void);
|
||||
int HuPrcKill(Process *process);
|
||||
void HuPrcChildKill(Process *process);
|
||||
void HuPrcSleep(s32 time);
|
||||
void HuPrcVSleep(void);
|
||||
void HuPrcWakeup(Process *process);
|
||||
void HuPrcDestructorSet2(Process *process, void (*func)(void));
|
||||
void HuPrcDestructorSet(void (*func)(void));
|
||||
void HuPrcCall(int tick);
|
||||
void *HuPrcMemAlloc(s32 size);
|
||||
void HuPrcMemFree(void *ptr);
|
||||
void HuPrcSetStat(Process *process, u16 value);
|
||||
void HuPrcResetStat(Process *process, u16 value);
|
||||
void HuPrcAllPause(int flag);
|
||||
void HuPrcAllUPause(int flag);
|
||||
|
||||
void omOvlGotoEx(int id, s16 end_mode, int stat, int event);
|
||||
void omOvlReturnEx(int level, s16 end_mode);
|
||||
void WipeCreate(char dir, char type, short duration);
|
||||
|
||||
u16 print8(s16 x, s16 y, float scale, char *str, ...);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
23
include/variables.h
Normal file
23
include/variables.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#ifndef _VARIABLES_H
|
||||
#define _VARIABLES_H
|
||||
|
||||
#include "types.h"
|
||||
#include "common_structs.h"
|
||||
#include "dolphin/os.h"
|
||||
|
||||
extern u16 HuPadBtnDown[4];
|
||||
extern u8 HuPadDStk[4];
|
||||
|
||||
extern OSHeapHandle currentHeapHandle;
|
||||
|
||||
extern BOOL saftyFrameF;
|
||||
extern u16 strlinecnt;
|
||||
extern u16 empstrline;
|
||||
extern int fontcolor;
|
||||
extern u32 procfunc;
|
||||
|
||||
extern WipeState wipeData;
|
||||
|
||||
extern PlayerConfig gPlayerConfig[4];
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue