Add cPhs_State typedef and use it everywhere

This commit is contained in:
LagoLunatic
2025-03-17 22:26:56 -04:00
parent 455ff4a571
commit 822b13e57a
887 changed files with 2448 additions and 2470 deletions
+4 -4
View File
@@ -137,7 +137,7 @@ void daWall_c::CreateInit() {
}
/* 00000380-000004EC .text _create__8daWall_cFv */
s32 daWall_c::_create() {
cPhs_State daWall_c::_create() {
fopAcM_SetupActor(this, daWall_c);
mType = fopAcM_GetParam(this) >> 8;
mSwitchNo = fopAcM_GetParam(this) & 0xFF;
@@ -146,7 +146,7 @@ s32 daWall_c::_create() {
return cPhs_ERROR_e;
}
s32 phase_state = dComIfG_resLoad(&mPhs, m_arcname[mType]);
cPhs_State phase_state = dComIfG_resLoad(&mPhs, m_arcname[mType]);
if (phase_state == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, CheckCreateHeap, m_heapsize[mType])) {
@@ -183,7 +183,7 @@ bool daWall_c::_execute() {
};
(this->*mode_proc[mState])();
return 1;
return true;
}
/* 00000980-00000A58 .text mode_wait__8daWall_cFv */
@@ -319,7 +319,7 @@ bool daWall_c::_draw() {
}
/* 00001044-00001064 .text daWall_Create__FPv */
static s32 daWall_Create(void* i_this) {
static cPhs_State daWall_Create(void* i_this) {
return ((daWall_c*)i_this)->_create();
}