Add an ida script to rename gamemaker engine functions#2
Open
Forwindz wants to merge 1 commit into
Open
Conversation
fuzzything44
added a commit
that referenced
this pull request
Aug 2, 2024
Added knockback_line to battle patterns Fixed steelheart damage bug (probably) due to the variable being int64 instead of real, sometimes A bit of work on Ran & Xin #2 (added a couple new mechs, cleaned things up a bit)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an IDA script to rename gamemaker engine functions (2600+functions)
Example function:
audio_group_set_gainsprite_get_bbox_mode(I use IDA v8.3)
How it works:
I find a function that uses this string
D:\\a\\GameMaker\\GameMaker\\GameMaker\\Runner\\VC_Runner\\Files\\Code\\Code_Function.cppThis function will allocate and store the reference and name of the GML functions.
In 1.0.2.1 it should be
sub_14176D940And some functions will call this function to link the function addresses and function names.
It should looks like this:
I rename functions mainly based on this information. And rename 2587 functions.
I also rename the function that invokes
sub_14176D940to link function addresses and function names, based on the word frequency. Example:gamemaker_init_func_name_shader_uniform_array_61.27 functions are renamed in this way. (It is a bit ugly, maybe I can rename it with a better name. These functions could be regarded as a procedure of initialization).