Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress on Helicopter::FUN_100042a0 #1242

Merged
merged 9 commits into from
Dec 20, 2024

Conversation

jonschz
Copy link
Contributor

@jonschz jonschz commented Dec 19, 2024

Here is my progress in case someone wants to continue. I am a bit stuck.

On the bright side, there may be a non-inlined version of UnknownMx4DPointFloat::Unknown7() here, where I improved the match. I didn't check the impact on other parts of the code yet.

@foxtacles
Copy link
Member

foxtacles commented Dec 19, 2024

I gave it a shot and improved the match to about ~60%. Still not 100% sure if the logic is completely correct but I think it's closer. Unfortunately the compiler optimizes the vectors a lot and Ghidra isn't particularly helpful with this function.

We can leave this open for a while in case someone else wants to give it a try.

@foxtacles
Copy link
Member

foxtacles commented Dec 20, 2024

Actually I think we got somewhere - replaced the ZEROVEC macro with a call to Clear and now we have a ~94% match. Pretty sure the logic is good. Inlining for the Unknown3 still not right but good enough I'd say.

@foxtacles foxtacles marked this pull request as ready for review December 20, 2024 00:15
@foxtacles foxtacles merged commit 7ed2ac9 into isledecomp:master Dec 20, 2024
12 checks passed
@jonschz
Copy link
Contributor Author

jonschz commented Dec 20, 2024

Good job!

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