mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-24 23:01:23 -04:00
df0ffcd87c
* f_op debug 1 * f_op debug 2 * f_op debug 3 * f_op debug 4 * f_op debug 5 * f_op_debug fix build * f_op linking * remove goto in fopac_create * fix regressions * fix regressions * pr comments
46 lines
1.2 KiB
C++
46 lines
1.2 KiB
C++
/**
|
|
* f_op_view.cpp
|
|
* View Process Framework
|
|
*/
|
|
|
|
#include "f_op/f_op_view.h"
|
|
#include "f_pc/f_pc_manager.h"
|
|
|
|
s32 fopVw_Draw(view_class* i_this) {
|
|
int ret = fpcLf_DrawMethod(i_this->sub_method, i_this);
|
|
return ret;
|
|
}
|
|
|
|
s32 fopVw_Execute(view_class* i_this) {
|
|
int ret = fpcMtd_Execute(&i_this->sub_method->base, i_this);
|
|
return ret;
|
|
}
|
|
|
|
s32 fopVw_IsDelete(void* i_this) {
|
|
int ret = fpcMtd_IsDelete(&((view_class*)i_this)->sub_method->base, i_this);
|
|
return ret;
|
|
}
|
|
|
|
s32 fopVw_Delete(view_class* i_this) {
|
|
int ret = fpcMtd_Delete(&i_this->sub_method->base, i_this);
|
|
return ret;
|
|
}
|
|
|
|
s32 fopVw_Create(void* i_this) {
|
|
view_class* a_this = (view_class*)i_this;
|
|
int ret;
|
|
|
|
view_process_profile_definition* profile = (view_process_profile_definition*)fpcM_GetProfile(i_this);
|
|
a_this->sub_method = profile->sub_method;
|
|
a_this->field_0xc4 = profile->unk_0x28;
|
|
|
|
ret = fpcMtd_Create(&a_this->sub_method->base, a_this);
|
|
return ret;
|
|
}
|
|
|
|
leafdraw_method_class g_fopVw_Method = {
|
|
(process_method_func)fopVw_Create, (process_method_func)fopVw_Delete,
|
|
(process_method_func)fopVw_Execute, (process_method_func)fopVw_IsDelete,
|
|
(process_method_func)fopVw_Draw,
|
|
};
|