CMysterio::MystRedbook_XAPlayPos

This commit is contained in:
krystalgamer 2024-07-02 18:22:12 +01:00
parent 20297f430e
commit a5f05ff525
4 changed files with 48 additions and 26 deletions

View File

@ -1,5 +1,6 @@
#include "mysterio.h"
#include "validate.h"
#include "ps2redbook.h"
// @TODO
CMysterio::CMysterio(int*, int)
@ -74,6 +75,20 @@ void __inline CMysterioHeadCircle::AngryMode(void)
this->field_8C = 1;
}
// @Ok
void INLINE CMysterio::MystRedbook_XAPlayPos(
i32 a2,
i32 a3,
CVector *a4,
i32 a5)
{
if (Redbook_XAPlay(a2, a3, a5))
{
this->field_3A0 = 0;
this->field_39C = 480;
}
}
void validate_CMysterio(void){
VALIDATE_SIZE(CMysterio, 0x3D0);
@ -94,6 +109,10 @@ void validate_CMysterio(void){
VALIDATE(CMysterio, field_38C, 0x38C);
VALIDATE(CMysterio, field_398, 0x398);
VALIDATE(CMysterio, field_39C, 0x39C);
VALIDATE(CMysterio, field_3A0, 0x3A0);
VALIDATE(CMysterio, field_3A8, 0x3A8);
}

View File

@ -21,41 +21,44 @@ public:
class CMysterio : public CBaddy {
public:
EXPORT CMysterio(int*, int);
EXPORT CMysterio(i32*, i32);
EXPORT CMysterio(void);
EXPORT void MystRedbook_XAPlayPos(i32, i32, CVector*, i32);
int field_324;
unsigned char padAfter324[0x4];
i32 field_324;
u8 padAfter324[0x4];
int field_32C;
unsigned char padAfter32C[0x358-0x32c-4];
i32 field_32C;
u8 padAfter32C[0x358-0x32c-4];
int field_358;
unsigned char padAfter358[0x4];
i32 field_358;
u8 padAfter358[0x4];
int field_360;
int field_364;
int field_368;
int field_36C;
unsigned char padAfter36C[0x4];
i32 field_360;
i32 field_364;
i32 field_368;
i32 field_36C;
u8 padAfter36C[0x4];
int field_374;
int field_378;
int field_37C;
int field_380;
int field_384;
unsigned char padAfter384[0x4];
i32 field_374;
i32 field_378;
i32 field_37C;
i32 field_380;
i32 field_384;
u8 padAfter384[0x4];
int field_38C;
unsigned char padAfter38c[0x8];
i32 field_38C;
u8 padAfter38c[0x8];
int field_398;
unsigned char padAfter398[0x3a8-0x398-4];
i32 field_398;
i32 field_39C;
i32 field_3A0;
u8 padAfter3A8[4];
int field_3A8;
unsigned char mysterioEndPad[0x3d0-0x3a8-4];
i32 field_3A8;
u8 mysterioEndPad[0x3d0-0x3a8-4];
};

View File

@ -13,7 +13,7 @@ void Redbook_XAStop(void)
}
// @TODO
int Redbook_XAPlay(int, int, int)
u8 Redbook_XAPlay(int, int, int)
{
return 0x1235959;
}

View File

@ -8,7 +8,7 @@
EXPORT void Redbook_XAStop(void);
EXPORT int Redbook_XAPlay(int, int, int);
EXPORT u8 Redbook_XAPlay(int, int, int);
EXPORT u8 Redbook_XAPlayPos(int, int, CVector*, int);
EXPORT void Redbook_XAAllow(bool);
EXPORT void Redbook_XAInitAtStart(void);