Cinema_Run and SFX_StopAll

This commit is contained in:
krystalgamer 2024-07-24 17:51:07 +02:00
parent 84fc0dc26b
commit 3bf4495fc9
6 changed files with 57 additions and 4 deletions

View File

@ -11,6 +11,12 @@ extern SFlatBitVelocity FlatBitVelocities[];
extern CBaddy* ControlBaddyList;
// @MEDIUMTODO
void Chunk_ChunkItemByChecksum(u32 Checksum)
{
printf("void Chunk_ChunkItemByChecksum(u32 Checksum)");
}
// @Ok
// @Test
void CChunkControl::AddChunk(CItem* pItem)

View File

@ -38,6 +38,7 @@ class CChunkControl : public CBody
};
EXPORT void Chunk_MakeItemDisappear(CItem* item);
EXPORT void Chunk_ChunkItemByChecksum(u32);
void validate_CChunkControl(void);
void validate_SChunkEntry(void);

View File

@ -1 +1,30 @@
#include "cinema.h"
#include "cinema.h"
#include "spidey.h"
#include "ps2lowsfx.h"
extern CPlayer *MechList;
EXPORT i32 gComicBookRun = 1;
// @Ok
void Cinema_Run(u32 a1)
{
SFX_StopAll();
if (MechList)
{
if (MechList->field_134)
{
Mem_Delete(MechList->field_134);
MechList->field_134 = 0;
}
}
if (gComicBookRun)
Cinema_ComicBookRun(a1);
}
// @MEDIUMTODO
void Cinema_ComicBookRun(u32)
{
printf("void Cinema_ComicBookRun(u32)");
}

View File

@ -3,4 +3,9 @@
#ifndef CINEMA_H
#define CINEMA_H
#endif
#include "export.h"
EXPORT void Cinema_Run(u32);
EXPORT void Cinema_ComicBookRun(u32);
#endif

View File

@ -1,6 +1,15 @@
#include "ps2lowsfx.h"
// @Ok
void SFX_StopAll(void)
{
for (i32 i = 0; i < 24; i++)
{
SFX_Stop(1 << i);
}
}
// @BIGTODO
i32 SFX_PlayPos(u32, CVector*, i32)
{
@ -28,8 +37,10 @@ void SFX_ReverbOff(void)
}
// @BIGTODO
void SFX_Stop(unsigned int)
{}
void SFX_Stop(u32)
{
printf("void SFX_Stop(unsigned int)");
}
// @BIGTODO
void SFX_Play(u32, i16, i32)

View File

@ -13,6 +13,7 @@ EXPORT void SFX_SetReverbType(unsigned char);
EXPORT void SFX_ReverbOff(void);
EXPORT void SFX_Stop(u32);
EXPORT void SFX_Play(u32, i16, i32);
EXPORT void SFX_StopAll(void);
#endif