mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-04 19:25:43 -04:00
d_a_dmidna OK / f_op + misc cleanup (#276)
* some f_op / d_insect cleanup * rename some vars according to tww * d_a_dmidna OK * remove asm
This commit is contained in:
+29
-35
@@ -1,33 +1,28 @@
|
||||
//
|
||||
// Generated By: dol2asm
|
||||
// Translation Unit: f_op/f_op_camera
|
||||
//
|
||||
/**
|
||||
* f_op_camera.cpp
|
||||
* Camera Process Framework
|
||||
*/
|
||||
|
||||
#include "f_op/f_op_camera.h"
|
||||
#include "d/com/d_com_inf_game.h"
|
||||
#include "d/s/d_s_play.h"
|
||||
#include "dol2asm.h"
|
||||
#include "dolphin/types.h"
|
||||
#include "f_op/f_op_draw_tag.h"
|
||||
#include "f_op/f_op_msg_mng.h"
|
||||
#include "f_pc/f_pc_leaf.h"
|
||||
|
||||
/* 8001E140-8001E180 018A80 0040+00 1/0 0/0 0/0 .text fopCam_Draw__FP12camera_class */
|
||||
static s32 fopCam_Draw(camera_class* pCamera) {
|
||||
static s32 fopCam_Draw(camera_class* i_this) {
|
||||
s32 cam_proc = 1;
|
||||
|
||||
if (!dComIfGp_isPauseFlag()) {
|
||||
cam_proc = fpcLf_DrawMethod(pCamera->mpMtd, pCamera);
|
||||
cam_proc = fpcLf_DrawMethod(i_this->mpMtd, i_this);
|
||||
}
|
||||
return cam_proc;
|
||||
}
|
||||
|
||||
/* 8001E180-8001E1C8 018AC0 0048+00 1/0 0/0 0/0 .text fopCam_Execute__FP12camera_class */
|
||||
static int fopCam_Execute(camera_class* pCamera) {
|
||||
static int fopCam_Execute(camera_class* i_this) {
|
||||
int ret;
|
||||
|
||||
if (!dComIfGp_isPauseFlag() && dScnPly_c::isPause()) {
|
||||
ret = fpcMtd_Execute((process_method_class*)pCamera->mpMtd, pCamera);
|
||||
ret = fpcMtd_Execute((process_method_class*)i_this->mpMtd, i_this);
|
||||
}
|
||||
|
||||
return ret;
|
||||
@@ -35,45 +30,46 @@ static int fopCam_Execute(camera_class* pCamera) {
|
||||
|
||||
/* 8001E1C8-8001E21C 018B08 0054+00 1/0 0/0 0/0 .text fopCam_IsDelete__FP12camera_class
|
||||
*/
|
||||
int fopCam_IsDelete(camera_class* pCamera) {
|
||||
int delete_stat = fpcMtd_IsDelete((process_method_class*)pCamera->mpMtd, pCamera);
|
||||
int fopCam_IsDelete(camera_class* i_this) {
|
||||
int delete_stat = fpcMtd_IsDelete((process_method_class*)i_this->mpMtd, i_this);
|
||||
if (delete_stat == 1) {
|
||||
fopDwTg_DrawQTo(&pCamera->mCreateTag);
|
||||
fopDwTg_DrawQTo(&i_this->mCreateTag);
|
||||
}
|
||||
|
||||
return delete_stat;
|
||||
}
|
||||
|
||||
/* 8001E21C-8001E270 018B5C 0054+00 1/0 0/0 0/0 .text fopCam_Delete__FP12camera_class */
|
||||
int fopCam_Delete(camera_class* pCamera) {
|
||||
int delete_stat = fpcMtd_Delete((process_method_class*)pCamera->mpMtd, pCamera);
|
||||
int fopCam_Delete(camera_class* i_this) {
|
||||
int delete_stat = fpcMtd_Delete((process_method_class*)i_this->mpMtd, i_this);
|
||||
if (delete_stat == 1) {
|
||||
fopDwTg_DrawQTo(&pCamera->mCreateTag);
|
||||
fopDwTg_DrawQTo(&i_this->mCreateTag);
|
||||
}
|
||||
|
||||
return delete_stat;
|
||||
}
|
||||
|
||||
/* 8001E270-8001E308 018BB0 0098+00 1/0 0/0 0/0 .text fopCam_Create__FPv */
|
||||
static int fopCam_Create(void* i_actorP) {
|
||||
camera_class* camera = (camera_class*)i_actorP;
|
||||
static int fopCam_Create(void* i_this) {
|
||||
camera_class* _this = (camera_class*)i_this;
|
||||
|
||||
if (fpcM_IsFirstCreating(i_actorP)) {
|
||||
camera_process_profile_definition* profile = (camera_process_profile_definition*) fpcM_GetProfile(i_actorP);
|
||||
camera->mpMtd = profile->mSubMtd;
|
||||
if (fpcM_IsFirstCreating(i_this)) {
|
||||
camera_process_profile_definition* profile =
|
||||
(camera_process_profile_definition*)fpcM_GetProfile(i_this);
|
||||
_this->mpMtd = profile->mSubMtd;
|
||||
|
||||
fopDwTg_Init(&camera->mCreateTag, camera);
|
||||
u32* append = (u32*)fpcM_GetAppend(camera);
|
||||
fopDwTg_Init(&_this->mCreateTag, _this);
|
||||
u32* append = (u32*)fpcM_GetAppend(_this);
|
||||
|
||||
if (append) {
|
||||
fpcM_SetParam(camera, *append);
|
||||
fpcM_SetParam(_this, *append);
|
||||
}
|
||||
}
|
||||
|
||||
int ret = fpcMtd_Create(&camera->mpMtd->mBase, camera);
|
||||
int ret = fpcMtd_Create(&_this->mpMtd->mBase, _this);
|
||||
if (ret == cPhs_COMPLEATE_e) {
|
||||
s32 priority = fpcLf_GetPriority(camera);
|
||||
fopDwTg_ToDrawQ(&camera->mCreateTag, priority);
|
||||
s32 priority = fpcLf_GetPriority(_this);
|
||||
fopDwTg_ToDrawQ(&_this->mCreateTag, priority);
|
||||
}
|
||||
|
||||
return ret;
|
||||
@@ -82,9 +78,7 @@ static int fopCam_Create(void* i_actorP) {
|
||||
/* ############################################################################################## */
|
||||
/* 803A3860-803A3878 -00001 0014+04 0/0 2/0 0/0 .data g_fopCam_Method */
|
||||
leafdraw_method_class g_fopCam_Method = {
|
||||
(process_method_func)fopCam_Create,
|
||||
(process_method_func)fopCam_Delete,
|
||||
(process_method_func)fopCam_Execute,
|
||||
(process_method_func)fopCam_IsDelete,
|
||||
(process_method_func)fopCam_Draw
|
||||
(process_method_func)fopCam_Create, (process_method_func)fopCam_Delete,
|
||||
(process_method_func)fopCam_Execute, (process_method_func)fopCam_IsDelete,
|
||||
(process_method_func)fopCam_Draw,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user