mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-30 23:44:28 -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:
@@ -5,26 +5,42 @@
|
||||
|
||||
#include "f_op/f_op_camera.h"
|
||||
#include "f_op/f_op_camera_mng.h"
|
||||
#include "f_ap/f_ap_game.h"
|
||||
#include "d/d_com_inf_game.h"
|
||||
#include "d/d_s_play.h"
|
||||
#include "f_op/f_op_draw_tag.h"
|
||||
|
||||
static s32 fopCam_Draw(camera_class* i_this) {
|
||||
s32 ret = 1;
|
||||
#if DEBUG
|
||||
fapGm_HIO_c::startCpuTimer();
|
||||
#endif
|
||||
|
||||
if (!dComIfGp_isPauseFlag()) {
|
||||
ret = fpcLf_DrawMethod(i_this->submethod, i_this);
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
fapGm_HIO_c::stopCpuTimer("カメラ(描画処理)"); // Camera (rendering process)
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int fopCam_Execute(camera_class* i_this) {
|
||||
int ret;
|
||||
#if DEBUG
|
||||
fapGm_HIO_c::startCpuTimer();
|
||||
#endif
|
||||
|
||||
if (!dComIfGp_isPauseFlag() && dScnPly_c::isPause()) {
|
||||
if (!dComIfGp_isPauseFlag() && !dScnPly_c::isPause()) {
|
||||
ret = fpcMtd_Execute((process_method_class*)i_this->submethod, i_this);
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
fapGm_HIO_c::stopCpuTimer("カメラ(計算処理)"); // Camera (computational processing)
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -38,7 +54,8 @@ int fopCam_IsDelete(camera_class* i_this) {
|
||||
}
|
||||
|
||||
int fopCam_Delete(camera_class* i_this) {
|
||||
int ret = fpcMtd_Delete((process_method_class*)i_this->submethod, i_this);
|
||||
int ret = 0;
|
||||
ret = fpcMtd_Delete((process_method_class*)i_this->submethod, i_this);
|
||||
if (ret == 1) {
|
||||
fopDwTg_DrawQTo(&i_this->create_tag);
|
||||
}
|
||||
@@ -48,6 +65,7 @@ int fopCam_Delete(camera_class* i_this) {
|
||||
|
||||
static int fopCam_Create(void* i_this) {
|
||||
camera_class* a_this = (camera_class*)i_this;
|
||||
int ret;
|
||||
|
||||
if (fpcM_IsFirstCreating(i_this)) {
|
||||
camera_process_profile_definition* profile = (camera_process_profile_definition*)fpcM_GetProfile(i_this);
|
||||
@@ -61,10 +79,9 @@ static int fopCam_Create(void* i_this) {
|
||||
}
|
||||
}
|
||||
|
||||
int ret = fpcMtd_Create(&a_this->submethod->base, a_this);
|
||||
ret = fpcMtd_Create(&a_this->submethod->base, a_this);
|
||||
if (ret == cPhs_COMPLEATE_e) {
|
||||
s32 priority = fpcM_DrawPriority(a_this);
|
||||
fopDwTg_ToDrawQ(&a_this->create_tag, priority);
|
||||
fopDwTg_ToDrawQ(&a_this->create_tag, fpcM_DrawPriority(a_this));
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user