mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-17 04:31:37 -04:00
f_op debug work (#2991)
* 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
This commit is contained in:
+33
-14
@@ -6,38 +6,59 @@
|
||||
#include "f_op/f_op_kankyo.h"
|
||||
#include "d/d_com_inf_game.h"
|
||||
#include "d/d_s_play.h"
|
||||
#include "f_ap/f_ap_game.h"
|
||||
#include "f_op/f_op_draw_tag.h"
|
||||
#include "f_op/f_op_kankyo_mng.h"
|
||||
|
||||
static int fopKy_KANKYO_TYPE;
|
||||
|
||||
void fopKy_IsKankyo(void* i_this) {
|
||||
fpcM_IsJustType(fopKy_KANKYO_TYPE, ((kankyo_class*)i_this)->type);
|
||||
}
|
||||
|
||||
static int fopKy_Draw(void* i_this) {
|
||||
int ret;
|
||||
kankyo_class* a_this = (kankyo_class*)i_this;
|
||||
|
||||
#if DEBUG
|
||||
fapGm_HIO_c::startCpuTimer();
|
||||
#endif
|
||||
|
||||
if (!dComIfGp_isPauseFlag()) {
|
||||
ret = fpcLf_DrawMethod(a_this->sub_method, i_this);
|
||||
ret = fpcLf_DrawMethod(((kankyo_class*)i_this)->sub_method, i_this);
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
fapGm_HIO_c::stopCpuTimer("環境関係(描画処理)"); // Environmental aspects (rendering processing)
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int fopKy_Execute(void* i_this) {
|
||||
int ret;
|
||||
kankyo_class* a_this = (kankyo_class*)i_this;
|
||||
int ret;
|
||||
|
||||
#if DEBUG
|
||||
fapGm_HIO_c::startCpuTimer();
|
||||
#endif
|
||||
|
||||
if (dScnPly_c::isPause() && (!dComIfGp_isPauseFlag() || fpcM_GetName(i_this) == PROC_ENVSE)) {
|
||||
ret = fpcMtd_Execute(&a_this->sub_method->base, i_this);
|
||||
if (!dScnPly_c::isPause() && (!dComIfGp_isPauseFlag() || fpcM_GetName(a_this) == PROC_ENVSE)) {
|
||||
ret = fpcMtd_Execute(&((kankyo_class*)i_this)->sub_method->base, i_this);
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
fapGm_HIO_c::stopCpuTimer("環境関係(計算処理)"); // Environmental aspects (computational processing)
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int fopKy_IsDelete(void* i_this) {
|
||||
int ret;
|
||||
kankyo_class* a_this = (kankyo_class*)i_this;
|
||||
|
||||
ret = fpcMtd_IsDelete(&a_this->sub_method->base, a_this);
|
||||
ret = fpcMtd_IsDelete(&((kankyo_class*)i_this)->sub_method->base, i_this);
|
||||
if (ret == 1) {
|
||||
fopDwTg_DrawQTo(&a_this->draw_tag);
|
||||
fopDwTg_DrawQTo(&((kankyo_class*)i_this)->draw_tag);
|
||||
}
|
||||
|
||||
return ret;
|
||||
@@ -52,15 +73,14 @@ static int fopKy_Delete(void* i_this) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int fopKy_KANKYO_TYPE;
|
||||
|
||||
static int fopKy_Create(void* i_this) {
|
||||
kankyo_class* a_this = (kankyo_class*)i_this;
|
||||
int ret;
|
||||
|
||||
if (fpcM_IsFirstCreating(i_this)) {
|
||||
kankyo_process_profile_definition* profile = (kankyo_process_profile_definition*)fpcM_GetProfile(i_this);
|
||||
|
||||
a_this->type = fpcBs_MakeOfType(&fopKy_KANKYO_TYPE);
|
||||
a_this->type = fpcM_MakeOfType(&fopKy_KANKYO_TYPE);
|
||||
a_this->sub_method = profile->sub_method;
|
||||
|
||||
fopDwTg_Init(&a_this->draw_tag, a_this);
|
||||
@@ -73,10 +93,9 @@ static int fopKy_Create(void* i_this) {
|
||||
}
|
||||
}
|
||||
|
||||
int ret = fpcMtd_Create(&a_this->sub_method->base, a_this);
|
||||
ret = fpcMtd_Create(&a_this->sub_method->base, a_this);
|
||||
if (ret == cPhs_COMPLEATE_e) {
|
||||
s32 priority = fpcM_DrawPriority(a_this);
|
||||
fopDwTg_ToDrawQ(&a_this->draw_tag, priority);
|
||||
fopDwTg_ToDrawQ(&a_this->draw_tag, fpcM_DrawPriority(a_this));
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user