This commit is contained in:
Jasper St. Pierre 2022-12-30 16:11:17 -08:00
parent 98b84ea0fa
commit 6fec278add
3 changed files with 11 additions and 9 deletions

View File

@ -271,7 +271,7 @@ static int fopAc_Create(void* actor) {
fopAc_ac_c* ac = (fopAc_ac_c*)actor;
if (fpcM_IsFirstCreating(actor)) {
leaf_process_profile_definition* profile = fpcM_GetProfile(actor);
leaf_process_profile_definition* profile = (leaf_process_profile_definition*) fpcM_GetProfile(actor);
ac->mAcType = fpcBs_MakeOfType(&g_fopAc_type);
ac->mSubMtd = (profile_method_class*)profile->mBase.mMethods;

View File

@ -58,7 +58,8 @@ static int fopCam_Create(void* i_actorP) {
camera_class* camera = (camera_class*)i_actorP;
if (fpcM_IsFirstCreating(i_actorP)) {
leaf_process_profile_definition* profile = fpcM_GetProfile(i_actorP);
// TODO: This should be camera_process_profile_definition
leaf_process_profile_definition* profile = (leaf_process_profile_definition*) fpcM_GetProfile(i_actorP);
camera->mpMtd = profile->mMethods;
fopDwTg_Init(&camera->mCreateTag, camera);
@ -80,10 +81,10 @@ static int fopCam_Create(void* i_actorP) {
/* ############################################################################################## */
/* 803A3860-803A3878 -00001 0014+04 0/0 2/0 0/0 .data g_fopCam_Method */
void* g_fopCam_Method[5] = {
fopCam_Create,
fopCam_Delete,
fopCam_Execute,
fopCam_IsDelete,
fopCam_Draw
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
};

View File

@ -88,7 +88,8 @@ static int fopKy_Create(void* param_0) {
kankyo_class* env = (kankyo_class*)param_0;
if (fpcM_IsFirstCreating(param_0)) {
leaf_process_profile_definition* profile = fpcM_GetProfile(param_0);
// TODO: This should be kankyo_process_profile_definition
leaf_process_profile_definition* profile = (leaf_process_profile_definition*) fpcM_GetProfile(param_0);
env->field_0xc0 = fpcBs_MakeOfType(&fopKy_KANKYO_TYPE);
env->field_0xd8 = profile->mBase.mMethods;