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
+9 -9
View File
@@ -11,32 +11,32 @@ s16 fpcLf_GetPriority(leafdraw_class* i_leaf) {
}
/* 8003DC9C-8003DCC0 .text fpcLf_DrawMethod__FP21leafdraw_method_classPv */
s32 fpcLf_DrawMethod(leafdraw_method_class* i_methods, void* i_data) {
BOOL fpcLf_DrawMethod(leafdraw_method_class* i_methods, void* i_data) {
return fpcMtd_Method(i_methods->mpDrawFunc, i_data);
}
/* 8003DCC0-8003DCF8 .text fpcLf_Draw__FP14leafdraw_class */
s32 fpcLf_Draw(leafdraw_class* i_leaf) {
s32 ret = 0;
BOOL fpcLf_Draw(leafdraw_class* i_leaf) {
BOOL ret = FALSE;
if (i_leaf->mbUnk0 == 0)
ret = fpcLf_DrawMethod(i_leaf->mpDrawMtd, i_leaf);
return ret;
}
/* 8003DCF8-8003DD20 .text fpcLf_Execute__FP14leafdraw_class */
s32 fpcLf_Execute(leafdraw_class* i_leaf) {
BOOL fpcLf_Execute(leafdraw_class* i_leaf) {
return fpcMtd_Execute(&i_leaf->mpDrawMtd->base, i_leaf);
}
/* 8003DD20-8003DD48 .text fpcLf_IsDelete__FP14leafdraw_class */
s32 fpcLf_IsDelete(leafdraw_class* i_leaf) {
BOOL fpcLf_IsDelete(leafdraw_class* i_leaf) {
return fpcMtd_IsDelete(&i_leaf->mpDrawMtd->base, i_leaf);
}
/* 8003DD48-8003DD8C .text fpcLf_Delete__FP14leafdraw_class */
s32 fpcLf_Delete(leafdraw_class* i_leaf) {
s32 ret = fpcMtd_Delete(&i_leaf->mpDrawMtd->base, i_leaf);
if (ret == 1) {
BOOL fpcLf_Delete(leafdraw_class* i_leaf) {
BOOL ret = fpcMtd_Delete(&i_leaf->mpDrawMtd->base, i_leaf);
if (ret == TRUE) {
i_leaf->base.mSubType = 0;
}
return ret;
@@ -45,7 +45,7 @@ s32 fpcLf_Delete(leafdraw_class* i_leaf) {
int g_fpcLf_type;
/* 8003DD8C-8003DE00 .text fpcLf_Create__FP14leafdraw_class */
s32 fpcLf_Create(leafdraw_class* i_leaf) {
cPhs_State fpcLf_Create(leafdraw_class* i_leaf) {
leaf_process_profile_definition* profDef;
if (i_leaf->base.mInitState == 0) {
profDef = (leaf_process_profile_definition*)i_leaf->base.mpProf;