mirror of
https://github.com/zeldaret/tp
synced 2026-06-10 20:59:01 -04:00
0cf65151b3
* split c_math * split c_angle * split c_API_controller_pad * split c_API_graphic * split c_bg_s_chk * c_bg_s_gnd_chk split * more c_bg split * split c_cc_d * delete asm * split c_cc_s * split c_lib * split c_m2d and c_m3d_g_aab * split c_m3d_g_cir * split c_m3d_g_cps * split rest of c_m3d_g * split c_m3d * split c_malloc * split c_request * split c_sxyz * split and partly decompile c_xyz * format * c_angle.h * begin c_angle decomp * c_angle * progress adding stub classes for SComponent * more c_m3d * remove some asm and format * more m3d headers * more c_angle decomp * c_lib headers * add public to classes * fix csXyz member names * c_sxyz partly OK * move Zero csXyz to c_sxyz header * c_API_graphic * delete some unused asm * move math extern data, decompile some functions * delete unused asm * fix duplicated c_angle.h * fix an inlined function name, add more inlined functions for c_angle.h (currently unused) * format Co-authored-by: Pheenoh <pheenoh@gmail.com>
40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
#include "f/f_pc/f_pc_draw.h"
|
|
#include "SComponent/c_API_graphic.h"
|
|
#include "f/f_pc/f_pc_layer.h"
|
|
#include "f/f_pc/f_pc_pause.h"
|
|
|
|
// f_pc_leaf::g_fpcLf_type
|
|
extern s32 lbl_80450D30;
|
|
|
|
typedef s32 (*cNdIt_MethodFuncFunc)(cNdIt_MethodFunc);
|
|
|
|
extern "C" {
|
|
|
|
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(lbl_80450D30, 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;
|
|
}
|
|
}
|
|
|
|
s32 fpcDw_Handler(cNdIt_MethodFuncFunc param_1, cNdIt_MethodFunc param_2) {
|
|
s32 ret;
|
|
cAPIGph_BeforeOfDraw();
|
|
ret = param_1(param_2);
|
|
cAPIGph_AfterOfDraw();
|
|
return ret;
|
|
}
|
|
} |