mirror of https://github.com/zeldaret/tp.git
46 lines
1.3 KiB
C++
46 lines
1.3 KiB
C++
//
|
|
// Generated By: dol2asm
|
|
// Translation Unit: f_pc/f_pc_draw
|
|
//
|
|
|
|
#include "f_pc/f_pc_draw.h"
|
|
#include "SSystem/SComponent/c_API_graphic.h"
|
|
#include "dol2asm.h"
|
|
#include "dolphin/types.h"
|
|
#include "f_pc/f_pc_leaf.h"
|
|
#include "f_pc/f_pc_pause.h"
|
|
|
|
//
|
|
// Declarations:
|
|
//
|
|
|
|
/* 80023954-800239F4 00A0+00 s=0 e=1 z=0 None .text fpcDw_Execute__FP18base_process_class */
|
|
s32 fpcDw_Execute(base_process_class* pProc) {
|
|
if (!fpcPause_IsEnable(pProc, 2)) {
|
|
layer_class* curLay;
|
|
s32 ret;
|
|
process_method_func func;
|
|
curLay = fpcLy_CurrentLayer();
|
|
if (fpcBs_Is_JustOfType(g_fpcLf_type, pProc->mSubType)) {
|
|
func = ((nodedraw_method_class*)pProc->mpPcMtd)->mNodedrawFunc;
|
|
} else {
|
|
func = ((nodedraw_method_class*)pProc->mpPcMtd)->mNodedrawFunc;
|
|
}
|
|
fpcLy_SetCurrentLayer(pProc->mLyTg.mpLayer);
|
|
ret = func(pProc);
|
|
fpcLy_SetCurrentLayer(curLay);
|
|
return ret;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/* 800239F4-80023A48 0054+00 s=0 e=2 z=10 None .text fpcDw_Handler__FPFPFPvPv_i_iPFPvPv_i */
|
|
s32 fpcDw_Handler(fpcDw_HandlerFuncFunc param_1, fpcDw_HandlerFunc param_2) {
|
|
s32 ret;
|
|
cAPIGph_BeforeOfDraw();
|
|
ret = param_1(param_2);
|
|
cAPIGph_AfterOfDraw();
|
|
return ret;
|
|
}
|