fopMsg_IsDelete OK

This commit is contained in:
Pheenoh 2021-03-27 21:06:54 -04:00
parent 54d1309221
commit 5424d71c52
No known key found for this signature in database
GPG Key ID: 4312662758CE7D5A
1 changed files with 16 additions and 9 deletions

View File

@ -9,7 +9,7 @@
// autogenerated by split.py v0.4 at 2021-02-15 21:05:32.071227
extern "C" {
void fopDwTg_DrawQTo__FP16create_tag_class(void);
void fopDwTg_DrawQTo(void);
// void fopDwTg_DrawQTo(void);
void fopDwTg_Init__FP16create_tag_classPv(void);
void fopDwTg_ToDrawQ__FP16create_tag_classi(void);
void fopMsgM_GetAppend__FPv(void);
@ -37,8 +37,9 @@ struct unk {
};
struct unk2 {
u8 field_0x00[0xd8];
process_method_class* mpDrawMtd;
u8 field_0x00[0xc4];
create_tag_class mTag;
process_method_class* mpPcMtd;
};
void fopMsg_Draw(void* pUserData) {
@ -51,17 +52,23 @@ s32 fopMsg_Execute(void* pUserData) {
unk2* pUnk2 = (unk2*)pUserData;
if (!lbl_80451124) {
ret = fpcMtd_Execute(pUnk2->mpDrawMtd,pUserData);
ret = fpcMtd_Execute(pUnk2->mpPcMtd,pUserData);
}
return ret;
}
// fopMsg_IsDelete__FPv
// fopMsg_IsDelete(void*)
asm void fopMsg_IsDelete(void*) {
nofralloc
#include "f/f_op/f_op_msg/asm/func_8001F4E8.s"
int fopMsg_IsDelete(void* pUserData) {
s32 ret = 1;
unk2* pUnk2 = (unk2*)pUserData;
int tmp = fpcMtd_IsDelete(pUnk2->mpPcMtd,pUserData);
if (tmp == 1) {
fopDwTg_DrawQTo(&pUnk2->mTag);
}
return tmp;
}
// fopMsg_Delete__FPv