Demo work

This commit is contained in:
LagoLunatic
2025-05-28 01:39:07 -04:00
parent 255d01c6db
commit b9190842b7
26 changed files with 389 additions and 221 deletions
+15 -1
View File
@@ -124,9 +124,15 @@ void* dDemo_getJaiPointer(const char* a_name, u32 bck, int num, u16* tbl) {
return NULL;
}
#if VERSION == VERSION_DEMO
BOOL dDemo_setDemoData(fopAc_ac_c* i_actor, u8 i_flags, mDoExt_McaMorf* i_morf, const char* i_arcName,
int p5, u16* p6)
#else
/* 800698C0-80069BC0 .text dDemo_setDemoData__FP10fopAc_ac_cUcP14mDoExt_McaMorfPCciPUsUlSc */
BOOL dDemo_setDemoData(fopAc_ac_c* i_actor, u8 i_flags, mDoExt_McaMorf* i_morf, const char* i_arcName,
int p5, u16* p6, u32 mtrlSndId, s8 i_reverb) {
int p5, u16* p6, u32 mtrlSndId, s8 i_reverb)
#endif
{
dDemo_actor_c* demo_actor = dComIfGp_demo_getActor(i_actor->demoActorID);
if (demo_actor == NULL)
return FALSE;
@@ -175,12 +181,20 @@ BOOL dDemo_setDemoData(fopAc_ac_c* i_actor, u8 i_flags, mDoExt_McaMorf* i_morf,
if (anm_frame > 1.0f) {
anm_frame -= 1.0f;
i_morf->setFrame(anm_frame);
#if VERSION == VERSION_DEMO
i_morf->play(&i_actor->current.pos, 0, 0);
#else
i_morf->play(&i_actor->current.pos, mtrlSndId, i_reverb);
#endif
} else {
i_morf->setFrame(anm_frame);
}
} else {
#if VERSION == VERSION_DEMO
i_morf->play(&i_actor->current.pos, 0, 0);
#else
i_morf->play(&i_actor->current.pos, mtrlSndId, i_reverb);
#endif
}
return TRUE;