Add more files

This commit is contained in:
dbalatoni13 2025-04-05 14:17:27 +02:00
parent b942deb12b
commit 6a27eb7356
7 changed files with 117 additions and 32 deletions

View file

@ -40,12 +40,17 @@ set(DOLPHIN_FILES
set(GAME_FILES
src/game/card.c
src/game/ClusterExec.c
src/game/data.c
src/game/EnvelopeExec.c
src/game/fault.c
src/game/flag.c
src/game/font.c
src/game/frand.c
src/game/hsfanim.c
src/game/hsfdraw.c
src/game/hsfex.c
src/game/hsfload.c
src/game/hsfman.c
src/game/hsfmotion.c
src/game/gamework.c
@ -53,12 +58,14 @@ set(GAME_FILES
src/game/malloc.c
src/game/memory.c
src/game/init.c
src/game/ShapeExec.c
src/game/sprman.c
src/game/sprput.c
src/game/pad.c
src/game/perf.c
src/game/printfunc.c
src/game/process.c
src/game/wipe.c
)
set(PORT_FILES

View file

@ -113,13 +113,13 @@ void main(void)
GWInit();
pfInit();
GlobalCounter = 0;
// HuSprInit();
// Hu3DInit();
// HuDataInit();
HuSprInit();
Hu3DInit();
HuDataInit();
HuPerfInit();
// HuPerfCreate("USR0", 0xFF, 0xFF, 0xFF, 0xFF);
// HuPerfCreate("USR1", 0, 0xFF, 0xFF, 0xFF);
// WipeInit(RenderMode);
HuPerfCreate("USR0", 0xFF, 0xFF, 0xFF, 0xFF);
HuPerfCreate("USR1", 0, 0xFF, 0xFF, 0xFF);
WipeInit(RenderMode);
for (i = 0; i < 4; i++) {
GWPlayerCfg[i].character = -1;
@ -147,17 +147,17 @@ void main(void)
break;
}
#endif
/*retrace = VIGetRetraceCount();
retrace = VIGetRetraceCount();
if (HuSoftResetButtonCheck() != 0 || HuDvdErrWait != 0) {
continue;
}*/
}
HuPerfZero();
HuPerfBegin(2);
#ifdef TARGET_PC
aurora_begin_frame();
#endif
// HuSysBeforeRender();
HuSysBeforeRender();
GXSetGPMetric(GX_PERF0_CLIP_VTX, GX_PERF1_VERTICES);
GXClearGPMetric();
GXSetVCacheMetric(GX_VC_ALL);
@ -171,7 +171,7 @@ void main(void)
pfClsScr();
HuPrcCall(1);
/* MGSeqMain();
MGSeqMain();
HuPerfBegin(1);
Hu3DExec();
HuDvdErrorWatch();
@ -179,21 +179,21 @@ void main(void)
HuPerfEnd(0);
pfDrawFonts();
HuPerfEnd(1);*/
HuPerfEnd(1);
#ifdef TARGET_PC
imgui_main(&auroraInfo);
aurora_end_frame();
#endif
/*msmMusFdoutEnd();
msmMusFdoutEnd();
HuSysDoneRender(retrace);
GXReadGPMetric(&met0, &met1);
GXReadVCacheMetric(&vcheck, &vmiss, &vstall);
GXReadPixMetric(&top_pixels_in, &top_pixels_out, &bot_pixels_in, &bot_pixels_out, &clr_pixels_in, &total_copy_clks);
GXReadMemMetric(&cp_req, &tc_req, &cpu_rd_req, &cpu_wr_req, &dsp_req, &io_req, &vi_req, &pe_req, &rf_req, &fi_req);
HuPerfEnd(2);
GlobalCounter++;*/
GlobalCounter++;
#ifdef TARGET_PC
frame_limiter();

View file

@ -176,13 +176,10 @@ void pfDrawFonts(void)
GXSetNumTevStages(1);
GXSetNumTexGens(0);
GXBegin(GX_QUADS, GX_VTXFMT0, 4);
#ifdef __MWERKS__
// TODO PC
GXPosition2s16(x, y);
GXPosition2s16(x + w, y);
GXPosition2s16(x + w, y + h);
GXPosition2s16(x, y + h);
#endif
GXEnd();
GXClearVtxDesc();
GXSetVtxDesc(GX_VA_POS, GX_DIRECT);
@ -236,8 +233,6 @@ void pfDrawFonts(void)
default:
texcoord_x = (c % 16) / 16.0f;
texcoord_y = ((c / 16) / 16.0f) + (1 / 128.0f);
#ifdef __MWERKS__
// TODO PC
if (shadow_color < 0) {
GXBegin(GX_QUADS, GX_VTXFMT0, 4);
GXPosition3s16(x, y, 0);
@ -282,7 +277,6 @@ void pfDrawFonts(void)
GXTexCoord2f32(texcoord_x, texcoord_y + (1 / 16.0f));
GXEnd();
}
#endif
x += char_w;
if (x > HU_FB_WIDTH) {
x = 0;
@ -330,8 +324,6 @@ static void WireDraw(void)
MTXIdentity(modelview);
GXLoadPosMtxImm(modelview, GX_PNMTX0);
GXBegin(GX_LINES, 0, 8);
#ifdef __MWERKS__
// TODO PC
GXPosition2f32(SAFETY_W, SAFETY_H);
GXColor3u8(255, 0, 0);
GXPosition2f32(SAFETY_W, HU_DISP_HEIGHT - SAFETY_H);
@ -348,6 +340,5 @@ static void WireDraw(void)
GXColor3u8(255, 0, 0);
GXPosition2f32(SAFETY_W, HU_DISP_HEIGHT - SAFETY_H);
GXColor3u8(255, 0, 0);
#endif
GXEnd();
}

View file

@ -111,9 +111,11 @@ void WipeExecAlways(void)
void WipeCreate(s16 mode, s16 type, s16 duration)
{
WipeState *wipe;
#ifdef __MWERKS__ // TODO PC
if(_CheckFlag(FLAG_ID_MAKE(1, 11)) && boardTutorialF) {
return;
}
#endif
wipe = &wipeData;
if(wipe->stat) {
return;

View file

@ -160,3 +160,8 @@ s32 DVDGetDriveStatus(void)
// puts("DVDGetDriveStatus is a stub");
return 0;
}
void HuDvdErrorWatch(void)
{
}

View file

@ -600,6 +600,71 @@ void GXColor3u8(u8 r, u8 g, u8 b)
GXColor4u8(r, g, b, 255);
}
void GXNormal1x16(u16 index)
{
puts("GXNormal1x16 is a stub");
}
void GXColor1x16(u16 index)
{
puts("GXColor1x16 is a stub");
}
void GXTexCoord1x16(u16 index)
{
puts("GXTexCoord1x16 is a stub");
}
void GXUnknownu16(const u16 x)
{
puts("GXUnknownu16 is a stub");
}
void GXNormal3s16(s16 x, s16 y, s16 z)
{
puts("GXNormal3s16 is a stub");
}
void GXPosition2u16(const u16 x, const u16 y)
{
puts("GXPosition2u16 is a stub");
}
void GXPosition2f32(const f32 x, const f32 y)
{
puts("GXPosition2f32 is a stub");
}
void GXPosition2s16(const s16 x, const s16 y)
{
puts("GXPosition2s16 is a stub");
}
void GXColor1x8(u8 index) {
puts("GXColor1x8 is a stub");
}
void GXWaitDrawDone(void)
{
puts("GXWaitDrawDone is a stub");
}
void GXSetTevIndTile(GXTevStageID tev_stage, GXIndTexStageID ind_stage, u16 tilesize_s, u16 tilesize_t, u16 tilespacing_s, u16 tilespacing_t,
GXIndTexFormat format, GXIndTexMtxID matrix_sel, GXIndTexBiasSel bias_sel, GXIndTexAlphaSel alpha_sel)
{
puts("GXSetTevIndTile is a stub");
}
void GXSetTexCoordScaleManually(GXTexCoordID coord, u8 enable, u16 ss, u16 ts)
{
puts("GXSetTexCoordScaleManually is a stub");
}
void GXResetWriteGatherPipe(void)
{
puts("GXResetWriteGatherPipe is a stub");
}
// Hudson
void HuDvdErrDispInit(GXRenderModeObj *rmode, void *xfb1, void *xfb2) { }
@ -611,3 +676,18 @@ void msmSysRegularProc(void)
{
puts("msmSysRegularProc is a stub");
}
void msmMusFdoutEnd(void)
{
puts("msmMusFdoutEnd is a stub");
}
s32 HuSoftResetButtonCheck(void)
{
puts("HuSoftResetButtonCheck is a stub");
}
void MGSeqMain(void)
{
puts("MGSeqMain is a stub");
}