Skip to content

d_a_obj_maki matching#2370

Merged
TakaRikka merged 4 commits intozeldaret:mainfrom
tetrisdev:d_a_obj_maki
Apr 3, 2025
Merged

d_a_obj_maki matching#2370
TakaRikka merged 4 commits intozeldaret:mainfrom
tetrisdev:d_a_obj_maki

Conversation

@tetrisdev
Copy link
Copy Markdown
Contributor

Matching d_a_obj_maki for #1047

Matched daObj_Maki_HIO_c::daObj_Maki_HIO_c() and started work on daObj_Maki_HIO_c::~daObj_Maki_HIO_c()
More structures defined, work on all methods, some equivalent, just missing registers
Final work on maki to get it to Match 100%.
Copy link
Copy Markdown
Contributor

@TakaRikka TakaRikka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly just formatting and some cleanup

Comment on lines +26 to +35
/* 0x57d */ char field_0x57d; // Undefined
/* 0x57e */ short field_0x57e;
/* 0x580 */ short field_0x580[2];
/* 0x584*/ dCcD_Stts mStts;
/* 0x5c0 */ dCcD_Sph mSph;
/* 0x6f8 */ u32 field_0x6f8[4];
/* 0x6fc */ char field_0x6fc[0x70c - 0x708]; // Undefined
/* 0x70c */ LIGHT_INFLUENCE mLightObj;
/* 0x72c */ u8 field_0x72c;
/* 0x72d */ char field_0x72d[0x730 - 0x72d]; //Undefined
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use s16 instead of short and u8 instead of char here

Comment on lines +34 to +39
if(param_0->field_0x57e == 0){
g_env_light.setLightTevColorType_MAJI(param_0->mModel1, &param_0->tevStr);
param_0->mBrk->entry(param_0->mModel1->getModelData());
mDoExt_modelUpdateDL(param_0->mModel1);

} else if(param_0->field_0x57c != 0x01){
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can the formatting here be cleaned up, remove the extra line under modelUpdate DL and put spaces after the if and before the opening braces


for (int i = 0; i < 5; i++) {
static u16 eff_id[] = {0x8204,0x8205,0x8206,0x8207,0x8208};
param_0->field_0x6f8[i] = dComIfGp_particle_set(param_0->field_0x6f8[i], eff_id[i] , &param_0->current.pos, &param_0->tevStr, &param_0->shape_angle,0,0xff,0,0xffffffff,0,0,0);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure to use NULL for null pointers and -1 for the signed char arg here


/* 80C8FEDC-80C90378 0001BC 049C+00 2/1 0/0 0/0 .text daObj_Maki_Execute__FP14obj_maki_class */
static void daObj_Maki_Execute(obj_maki_class* param_0) {
int daObj_Maki_Execute(obj_maki_class* param_0) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for all obj_maki_class param's in this TU, you can just name them i_this


/* 80C90378-80C90380 000658 0008+00 1/0 0/0 0/0 .text daObj_Maki_IsDelete__FP14obj_maki_class */
static bool daObj_Maki_IsDelete(obj_maki_class* param_0) {
bool daObj_Maki_IsDelete(obj_maki_class* param_0) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

returns int

Comment on lines +125 to +128
pfVar5 = mDoMtx_stack_c::get();
model->setBaseTRMtx(pfVar5);
Mtx &mtx = model->getBaseTRMtx();
fopAcM_SetMtx(param_0, mtx);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should be able to remove temps here, just passing the results directly into the functions

d_a_obj_maki matching | * cleanup for PR
@tetrisdev
Copy link
Copy Markdown
Contributor Author

Added all the formatting changes

@TakaRikka TakaRikka merged commit 55f2b09 into zeldaret:main Apr 3, 2025
1 check passed
@tetrisdev tetrisdev deleted the d_a_obj_maki branch April 3, 2025 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants