-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
il2cpp_header_to_ghidra.py: Allow loading and saving from any place + replace keywords #764
base: master
Are you sure you want to change the base?
Conversation
I used this version to replace C Keywords if they are variable names, it still got an error at
Ended up changing '_' to 'is' so it would then be 'issigned' Hope this helps |
I guess there are also arch and compiler specific keywords... I guess we can't do much about this than update script regularly. :D |
Line 58: Maybe one thing to make a note for would be, that this script is intended to be run in the ghidra script environment, because of askFile(). |
None of Python scripts in this repository were designed to run directly under Python, so you would need to point this out for everything. |
Have you ever read the README? |
Script now shows window from which user can choose from where they want to load file + window where it should save it.
Also replaces all C keywords if they are used as variable name, by adding "_" at the beginning of name as many times as needed (if 9 is not enough, it skips replacing this name) to not use name that is already in use.
Keywords list taken from here:
https://en.cppreference.com/w/c/keyword
Fixes issue mentioned here:
#762