made buildable, more functions

This commit is contained in:
CreateSource 2024-01-25 20:48:41 -05:00
parent b57a1051ca
commit 3611908f9b
6 changed files with 188 additions and 42 deletions

View file

@ -68,7 +68,6 @@ void BoardCameraQuakeSet(s32 duration, float strength);
s16 MGSeqCreate(s32, ...);
u8 MGSeqStatGet(s16);
void omVibrate(s16, s16, s16, s16);
void BoardPlayerMotBlendSet(s32, s32, s32);
f32 BoardPlayerRotYGet(s32);
f32 BoardModelMotionTimeGet(s16);
s32 BoardVecMinDistCheck(Vec *vec1, Vec *vec2, float min_dist);
@ -952,4 +951,4 @@ void fn_1_BE30(s32 arg0, ParticleData* arg1) {
}
}
}
}
}

View file

@ -3,18 +3,17 @@
#include "REL/w03Dll.h"
#include "board_unsplit.h"
#include "game/board/main.h"
#include "game/board/player.h"
double sin(double x);
double cos(double x);
double atan2(double y, double x);
s16 BoardModelIDGet(s16 model);
void Hu3DModelObjPosGet(s16 arg0, char *arg1, Vec *arg2);
void BoardPlayerMotBlendSet(s32, s32, s32);
float BoardModelMotionTimeGet(s16 model);
s32 BoardModelMotionShiftSet(s16 model, s32 motion, float time, float shift_time, u32 attr);
void BoardPlayerPosSet(s32, f32, f32, f32);
s32 BoardModelHookSet(s16 model, char *name, s16 hook);
void BoardPlayerMotionShiftSet(s32, s32, f32, f32, s32);
#define OM_GET_WORK_PTR(object, type) ((type *)(&((object)->work[0])))
@ -314,15 +313,6 @@ void fn_1_6B98(s32 arg0) {
extern s32 lbl_1_data_368[];
extern w03State* lbl_1_bss_0;
static inline PlayerState *BoardPlayerGet(s32 player) {
return &GWPlayer[player];
}
static inline s16 BoardPlayerModelGet(s32 player) {
PlayerState *player_ptr = BoardPlayerGet(player);
return boardPlayerMdl[player_ptr->player_idx];
}
void fn_1_6F9C(s32 arg0) {
Vec sp20;
@ -474,4 +464,4 @@ void fn_1_77E4(s32 arg0) {
BoardComKeySetRight();
}
char padRiver[] = "\0\0\0\0";
char padRiver[] = "\0\0\0\0";

View file

@ -26,7 +26,6 @@ void fn_1_2A40(void);
void fn_1_2B44(void);
s32 BoardDAngleCalcRange(f32*, f32, f32);
s32 BoardPlayerMotBlendCheck(s32);
void BoardPlayerMotBlendSet(s32, s32, s32);
f32 BoardPlayerRotYGet(s32);
void BoardConfettiCreate(Point3d*, s16, f32);
double atan2(double y, double x);
@ -95,7 +94,7 @@ f32 lbl_1_bss_30;
s8 lbl_1_bss_2C;
Process* lbl_1_bss_28;
s32 fn_1_12C8(void) {
void fn_1_12C8(void) {
BoardDiceDigit2DShowSet(0);
lbl_1_bss_28 = HuPrcChildCreate(&fn_1_1358, 0x2003, 0x2000, 0, boardMainProc);
HuPrcDestructorSet2(lbl_1_bss_28, &fn_1_152C);
@ -103,7 +102,7 @@ s32 fn_1_12C8(void) {
while (lbl_1_bss_28) {
HuPrcVSleep();
}
return BoardDiceDigit2DShowSet(1);
BoardDiceDigit2DShowSet(1);
}
void fn_1_1358(void) {
@ -648,4 +647,4 @@ void fn_1_2B44(void) {
GXSetChanMatColor(GX_COLOR0A0, sp1C);
}
f32 const padStatue = 0.0f;
f32 const padStatue = 0.0f;