d_a_vrbox / d_a_kytag02 / d_a_obj_eff OK (#327)

* d_a_vrbox / d_a_kytag02 / d_a_obj_eff OK

* some std header setups

* f_pc / profile cleanup

* setup cull data

* remove asm

* d_a_suspend OK
This commit is contained in:
TakaRikka
2023-05-05 16:17:19 -07:00
committed by GitHub
parent 8d01442f7c
commit 85827b28ff
148 changed files with 1924 additions and 2696 deletions
+22 -22
View File
@@ -6,39 +6,39 @@
#include "f_pc/f_pc_leaf.h"
/* 80021A00-80021A24 0024+00 s=0 e=4 z=2 None .text fpcLf_GetPriority__FPC14leafdraw_class */
s16 fpcLf_GetPriority(const leafdraw_class* pLeaf) {
return fpcDwPi_Get(&pLeaf->mDwPi);
s16 fpcLf_GetPriority(const leafdraw_class* i_leaf) {
return fpcDwPi_Get(&i_leaf->mDwPi);
}
/* 80021A24-80021A48 0024+00 s=1 e=6 z=0 None .text fpcLf_DrawMethod__FP21leafdraw_method_classPv
*/
s32 fpcLf_DrawMethod(leafdraw_method_class* pMthd, void* pUserData) {
return fpcMtd_Method(pMthd->mpDrawFunc, pUserData);
s32 fpcLf_DrawMethod(leafdraw_method_class* i_methods, void* i_data) {
return fpcMtd_Method(i_methods->mpDrawFunc, i_data);
}
/* 80021A48-80021A80 0038+00 s=1 e=0 z=0 None .text fpcLf_Draw__FP14leafdraw_class */
s32 fpcLf_Draw(leafdraw_class* pLeaf) {
s32 fpcLf_Draw(leafdraw_class* i_leaf) {
s32 ret = 0;
if (pLeaf->mbUnk0 == 0)
ret = fpcLf_DrawMethod(pLeaf->mpDrawMtd, pLeaf);
if (i_leaf->mbUnk0 == 0)
ret = fpcLf_DrawMethod(i_leaf->mpDrawMtd, i_leaf);
return ret;
}
/* 80021A80-80021AA8 0028+00 s=1 e=0 z=0 None .text fpcLf_Execute__FP14leafdraw_class */
s32 fpcLf_Execute(leafdraw_class* pLeaf) {
return fpcMtd_Execute(&pLeaf->mpDrawMtd->mBase, pLeaf);
s32 fpcLf_Execute(leafdraw_class* i_leaf) {
return fpcMtd_Execute(&i_leaf->mpDrawMtd->mBase, i_leaf);
}
/* 80021AA8-80021AD0 0028+00 s=1 e=0 z=0 None .text fpcLf_IsDelete__FP14leafdraw_class */
s32 fpcLf_IsDelete(leafdraw_class* pLeaf) {
return fpcMtd_IsDelete(&pLeaf->mpDrawMtd->mBase, pLeaf);
s32 fpcLf_IsDelete(leafdraw_class* i_leaf) {
return fpcMtd_IsDelete(&i_leaf->mpDrawMtd->mBase, i_leaf);
}
/* 80021AD0-80021B14 0044+00 s=1 e=0 z=0 None .text fpcLf_Delete__FP14leafdraw_class */
s32 fpcLf_Delete(leafdraw_class* pLeaf) {
s32 ret = fpcMtd_Delete(&pLeaf->mpDrawMtd->mBase, pLeaf);
s32 fpcLf_Delete(leafdraw_class* i_leaf) {
s32 ret = fpcMtd_Delete(&i_leaf->mpDrawMtd->mBase, i_leaf);
if (ret == 1) {
pLeaf->mBase.mSubType = 0;
i_leaf->mBase.mSubType = 0;
}
return ret;
}
@@ -48,16 +48,16 @@ s32 fpcLf_Delete(leafdraw_class* pLeaf) {
int g_fpcLf_type;
/* 80021B14-80021B88 0074+00 s=1 e=0 z=0 None .text fpcLf_Create__FP14leafdraw_class */
s32 fpcLf_Create(leafdraw_class* pLeaf) {
s32 fpcLf_Create(leafdraw_class* i_leaf) {
leaf_process_profile_definition* profDef;
if (pLeaf->mBase.mInitState == 0) {
profDef = (leaf_process_profile_definition*)pLeaf->mBase.mpProf;
pLeaf->mpDrawMtd = profDef->mSubMtd;
pLeaf->mBase.mSubType = fpcBs_MakeOfType(&g_fpcLf_type);
fpcDwPi_Init(&pLeaf->mDwPi, profDef->mPriority);
pLeaf->mbUnk0 = 0;
if (i_leaf->mBase.mInitState == 0) {
profDef = (leaf_process_profile_definition*)i_leaf->mBase.mpProf;
i_leaf->mpDrawMtd = profDef->mSubMtd;
i_leaf->mBase.mSubType = fpcBs_MakeOfType(&g_fpcLf_type);
fpcDwPi_Init(&i_leaf->mDwPi, profDef->mPriority);
i_leaf->mbUnk0 = 0;
}
return fpcMtd_Create(&pLeaf->mpDrawMtd->mBase, pLeaf);
return fpcMtd_Create(&i_leaf->mpDrawMtd->mBase, i_leaf);
}
/* ############################################################################################## */