Add an ida script to rename gamemaker engine functions #2
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_gain
sprite_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.cpp
This function will allocate and store the reference and name of the GML functions.
In 1.0.2.1 it should be
sub_14176D940
And 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_14176D940
to 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).