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

51
src/game/printfunc.c Normal file
View file

@ -0,0 +1,51 @@
#include "common.h"
#include "dolphin/gx.h"
struct strline_data {
u16 type;
u16 last_idx;
s16 x;
s16 y;
s16 w;
s16 h;
s16 empty_line;
float scale;
char str[80];
GXColor color;
};
static struct strline_data strline[256];
static char pfStrBuf[256];
BOOL saftyFrameF;
u16 strlinecnt;
u16 empstrline;
int fontcolor;
void pfClsScr(void);
void pfInit(void)
{
int i;
fontcolor = 15;
empstrline = 0;
for (i = 0; i < 256; i++) {
strline[i].str[0] = 0;
}
pfClsScr();
}
void pfClsScr(void)
{
int i;
empstrline = 0;
strlinecnt = 0;
for (i = 0; i < 256; i++) {
strline[i].empty_line = i+1;
strline[i].type = 0;
if (strline[i].str[0] != 0) {
strline[i].str[0] = 0;
}
}
}

112
src/game/process.c Normal file
View file

@ -0,0 +1,112 @@
#include "common.h"
#include "dolphin/os.h"
void HuPrcInit()
{
}
Process *HuPrcCreate(void (*func)(void), u16 prio, s32 stack_size, s32 extra_size)
{
return NULL;
}
void HuPrcChildLink()
{
}
void HuPrcChildUnlink()
{
}
void HuPrcChildCreate()
{
}
void HuPrcChildWatch()
{
}
void HuPrcCurrentGet()
{
}
void HuPrcKill()
{
}
void HuPrcChildKill()
{
}
void HuPrcEnd()
{
}
void HuPrcSleep(s32 time)
{
}
void HuPrcVSleep()
{
}
void HuPrcWakeup()
{
}
void HuPrcDestructorSet2()
{
}
void HuPrcDestructorSet()
{
}
void HuPrcCall()
{
}
void HuPrcMemAlloc()
{
}
void HuPrcMemFree()
{
}
void HuPrcSetStat()
{
}
void HuPrcResetStat()
{
}
void HuPrcAllPause()
{
}
void HuPrcAllUPause()
{
}