Demo matches (#767)

This commit is contained in:
LagoLunatic
2025-05-24 18:54:46 -04:00
committed by GitHub
parent 4a29f64e6b
commit 7cd75e8f7b
83 changed files with 945 additions and 424 deletions
+13 -10
View File
@@ -13,12 +13,13 @@
namespace daMmusic {
namespace {
struct Attr_c {
/* 0x00 */ u32 mTimer;
/* 0x00 */ u16 field_0x00;
/* 0x02 */ u16 field_0x02;
/* 0x04 */ u16 field_0x04;
};
static const Attr_c L_attr = {
120, 180,
0, 120, 180,
};
inline const Attr_c & attr() { return L_attr; }
@@ -59,14 +60,16 @@ cPhs_State daMmusic::Act_c::_create() {
fopAcM_SetupActor(this, Act_c);
cPhs_State ret = cPhs_COMPLEATE_e;
if (fopAcM_entrySolidHeap(this, solidHeapCB, 0)) {
set_mtx();
fopAcM_SetMtx(this, mMtx);
field_0x298 = Macore_is_playing();
fopAcM_setCullSizeSphere(this, 0.0f, 0.0f, 0.0f, 300.0f);
init_se();
} else {
ret = cPhs_ERROR_e;
if (ret == cPhs_COMPLEATE_e) {
if (fopAcM_entrySolidHeap(this, solidHeapCB, 0)) {
set_mtx();
fopAcM_SetMtx(this, mMtx);
field_0x298 = Macore_is_playing();
fopAcM_setCullSizeSphere(this, 0.0f, 0.0f, 0.0f, 300.0f);
init_se();
} else {
ret = cPhs_ERROR_e;
}
}
return ret;
}