Skip to content

d_a_obj_laundry_rope Matching#2464

Merged
hatal175 merged 7 commits intozeldaret:mainfrom
ArnautS:decompile/d_a_obj_laundry_rope
May 31, 2025
Merged

d_a_obj_laundry_rope Matching#2464
hatal175 merged 7 commits intozeldaret:mainfrom
ArnautS:decompile/d_a_obj_laundry_rope

Conversation

@ArnautS
Copy link
Copy Markdown
Contributor

@ArnautS ArnautS commented May 30, 2025

No description provided.

@decomp-dev
Copy link
Copy Markdown

decomp-dev bot commented May 30, 2025

Report for GZ2E01 (4c4370b - 03043d9)

📈 Matched code: 62.26% (+0.04%, +4344 bytes)
📈 Linked code: 27.09% (+0.04%, +4356 bytes)

✅ 16 new matches:
Unit Function Bytes Before After
d_a_obj_laundry_rope/d/actor/d_a_obj_laundry_rope daObjLndRope_c::create_init() +1573 0.25% 100.00%
d_a_obj_laundry_rope/d/actor/d_a_obj_laundry_rope daObjLndRope_c::setNormalRopePos() +996 0.40% 100.00%
d_a_obj_laundry_rope/d/actor/d_a_obj_laundry_rope daObjLndRope_Create(fopAc_ac_c*) +324 1.22% 100.00%
d_a_obj_laundry_rope/d/actor/d_a_obj_laundry_rope daObjLndRope_Delete(daObjLndRope_c*) +237 1.67% 100.00%
d_a_obj_laundry_rope/d/actor/d_a_obj_laundry_rope dCcD_Sph::~dCcD_Sph() +200 1.96% 100.00%
d_a_obj_laundry_rope/d/actor/d_a_obj_laundry_rope createSolidHeap(fopAc_ac_c*) +165 2.38% 100.00%
d_a_obj_laundry_rope/d/actor/d_a_obj_laundry_rope daObjLndRope_Draw(daObjLndRope_c*) +144 2.70% 100.00%
d_a_obj_laundry_rope/d/actor/d_a_obj_laundry_rope dCcD_Sph::dCcD_Sph() +129 3.03% 100.00%
d_a_obj_laundry_rope/d/actor/d_a_obj_laundry_rope dCcD_GStts::~dCcD_GStts() +89 4.35% 100.00%
d_a_obj_laundry_rope/d/actor/d_a_obj_laundry_rope daObjLndRope_c::setBaseMtx() +76 5.00% 100.00%
d_a_obj_laundry_rope/d/actor/d_a_obj_laundry_rope cM3dGSph::~cM3dGSph() +69 5.56% 100.00%
d_a_obj_laundry_rope/d/actor/d_a_obj_laundry_rope cM3dGAab::~cM3dGAab() +69 5.56% 100.00%
d_a_obj_laundry_rope/d/actor/d_a_obj_laundry_rope cCcD_GStts::~cCcD_GStts() +69 5.56% 100.00%
d_a_obj_laundry_rope/d/actor/d_a_obj_laundry_rope cXyz::~cXyz() +57 6.67% 100.00%
d_a_obj_laundry_rope/d/actor/d_a_obj_laundry_rope daObjLndRope_c::initBaseMtx() +49 7.69% 100.00%
d_a_obj_laundry_rope/d/actor/d_a_obj_laundry_rope daObjLndRope_Execute(daObjLndRope_c*) +45 8.33% 100.00%

Comment thread src/d/actor/d_a_obj_laundry_rope.cpp Outdated
Comment thread include/d/actor/d_a_obj_laundry_rope.h Outdated
Comment thread src/d/actor/d_a_obj_laundry_rope.cpp Outdated
Comment on lines +88 to +89
&csXyz(0, cLib_targetAngleY(ropePosition, ropePosition + 1) + 0x4000,
-cLib_targetAngleX(ropePosition, ropePosition + 1)),
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.

this seems likely to be a temp instead

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If I assign this to a variable before the function call I don't have a match anymore.

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.

Yeah it is not as easy as that. But the current version is passing a reference to a temporary object, and I am surprised MWCC is fine with it (clang is not).

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.

I'm gonna merge this and let someone else figure out the solution

Comment thread src/d/actor/d_a_obj_laundry_rope.cpp Outdated
Comment thread src/d/actor/d_a_obj_laundry_rope.cpp Outdated
@hatal175 hatal175 merged commit 2835276 into zeldaret:main May 31, 2025
1 check passed
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.

4 participants