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

Correctly Set Sub-Function Names #1036

Merged

Conversation

steviegt6
Copy link
Contributor

@steviegt6 steviegt6 commented Jul 4, 2022

Resolves #1035.

Description

Changes function decompilation behavior to use the associated sub-function name if possible. Without this, ever sub-function takes on the name of the function defined in the first statement of the decompilation context, which of course spells issues.

Caveats

No caveats that I am aware of - everything works the same, and I confirmed that recompilation works as well.

Notes

I have confirmed that recompilation and everything works fine. I'm not too familiar with the codebase and the inner workings of everything, so please verify this PR if needed.

If there is a better way to get the sub-function (especially if there is a way that doesn't require LINQ), please tell me.

@Archie-osu
Copy link
Contributor

LGTM!

@steviegt6 steviegt6 changed the title Correctly set the names of sub-functions. Correctly Set Sub-Function Names Jul 4, 2022
@github-actions
Copy link

github-actions bot commented Jul 18, 2022

Beneficial to code cleanliness and provides ever-so-slight code optimizations.
@colinator27 colinator27 merged commit 674c5d8 into UnderminersTeam:master Jul 20, 2022
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.

[Decompiler] [GMS 2.3] Duplicate Decompiled Function Names
4 participants