mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-26 15:24:30 -04:00
215421ba51
* move remaining old progress * remove asm
114 lines
3.4 KiB
C++
114 lines
3.4 KiB
C++
//
|
|
// Generated By: dol2asm
|
|
// Translation Unit: f_op/f_op_camera
|
|
//
|
|
|
|
#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_pc/f_pc_leaf.h"
|
|
|
|
//
|
|
// Forward References:
|
|
//
|
|
|
|
extern "C" static void fopCam_Draw__FP12camera_class();
|
|
extern "C" static void fopCam_Execute__FP12camera_class();
|
|
extern "C" static void fopCam_IsDelete__FP12camera_class();
|
|
extern "C" static void fopCam_Delete__FP12camera_class();
|
|
extern "C" static void fopCam_Create__FPv();
|
|
extern "C" extern void* g_fopCam_Method[5 + 1 /* padding */];
|
|
|
|
//
|
|
// External References:
|
|
//
|
|
|
|
extern "C" void fopDwTg_ToDrawQ__FP16create_tag_classi();
|
|
extern "C" void fopDwTg_DrawQTo__FP16create_tag_class();
|
|
extern "C" void fopDwTg_Init__FP16create_tag_classPv();
|
|
extern "C" void fpcLf_GetPriority__FPC14leafdraw_class();
|
|
extern "C" void fpcLf_DrawMethod__FP21leafdraw_method_classPv();
|
|
extern "C" void fpcMtd_Execute__FP20process_method_classPv();
|
|
extern "C" void fpcMtd_IsDelete__FP20process_method_classPv();
|
|
extern "C" void fpcMtd_Delete__FP20process_method_classPv();
|
|
extern "C" void fpcMtd_Create__FP20process_method_classPv();
|
|
|
|
//
|
|
// Declarations:
|
|
//
|
|
|
|
/* 8001E140-8001E180 018A80 0040+00 1/0 0/0 0/0 .text fopCam_Draw__FP12camera_class */
|
|
static s32 fopCam_Draw(camera_class* pCamera) {
|
|
s32 cam_proc = 1;
|
|
|
|
if (!dComIfGp_isPauseFlag()) {
|
|
cam_proc = fpcLf_DrawMethod(pCamera->pMthd, pCamera);
|
|
}
|
|
return cam_proc;
|
|
}
|
|
|
|
/* 8001E180-8001E1C8 018AC0 0048+00 1/0 0/0 0/0 .text fopCam_Execute__FP12camera_class */
|
|
// Matches, but wrong registers
|
|
#ifdef NONMATCHING
|
|
static void fopCam_Execute(camera_class* pCamera) {
|
|
if (!dComIfGp_isPauseFlag() && dScnPly_c::isPause()) {
|
|
fpcMtd_Execute((process_method_class*)pCamera->pMthd, pCamera);
|
|
}
|
|
}
|
|
#else
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void fopCam_Execute(camera_class* param_0) {
|
|
nofralloc
|
|
#include "asm/f_op/f_op_camera/fopCam_Execute__FP12camera_class.s"
|
|
}
|
|
#pragma pop
|
|
#endif
|
|
|
|
/* 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->pMthd, pCamera);
|
|
if (delete_stat == 1) {
|
|
fopDwTg_DrawQTo(&pCamera->pCreateTag);
|
|
}
|
|
|
|
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->pMthd, pCamera);
|
|
if (delete_stat == 1) {
|
|
fopDwTg_DrawQTo(&pCamera->pCreateTag);
|
|
}
|
|
|
|
return delete_stat;
|
|
}
|
|
|
|
/* 8001E270-8001E308 018BB0 0098+00 1/0 0/0 0/0 .text fopCam_Create__FPv */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void fopCam_Create(void* param_0) {
|
|
nofralloc
|
|
#include "asm/f_op/f_op_camera/fopCam_Create__FPv.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* ############################################################################################## */
|
|
/* 803A3860-803A3878 -00001 0014+04 0/0 2/0 0/0 .data g_fopCam_Method */
|
|
SECTION_DATA extern void* g_fopCam_Method[5 + 1 /* padding */] = {
|
|
(void*)fopCam_Create,
|
|
(void*)fopCam_Delete,
|
|
(void*)fopCam_Execute,
|
|
(void*)fopCam_IsDelete,
|
|
(void*)fopCam_Draw,
|
|
/* padding */
|
|
NULL,
|
|
};
|