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

Zoltan typedefs #58

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Zoltan typedefs #58

wants to merge 3 commits into from

Conversation

jac3km4
Copy link
Contributor

@jac3km4 jac3km4 commented Apr 10, 2022

this is just a demo header that can be used with zoltan clang frontend
the command to run on this is:

zoltan-clang '.\include\RED4ext\Typedefs.hpp' 'C:\Games\Cyberpunk 2077\bin\x64\Cyberpunk2077.exe' -f 'std=c++20' -f 'I.\include' --dwarf-output '.\debug-symbols' --c-output '.\addresses.h'

it generates a header with addresses like:

#define CBASEFUNCTION_EXECUTE_ADDR 0x140206A70
#define CGLOBALFUNCTION_CTOR_ADDR 0x140206380
...

and symbols that can be loaded into IDA:
image

@WopsS
Copy link
Owner

WopsS commented Apr 10, 2022

Can you move the file to a new directory? Maybe zoltan. If we do this people might get confused with the typedefs.

@jac3km4
Copy link
Contributor Author

jac3km4 commented Apr 10, 2022

the typedefs can replaced with c++-style using type aliases

@WopsS
Copy link
Owner

WopsS commented Apr 10, 2022

Nice! Does it also support namespaces? And custom math? Like CBaseFunction_Execute = addr - img_base so we get only the RVA?

@jac3km4
Copy link
Contributor Author

jac3km4 commented Apr 10, 2022

You can use namespaces on the latest version, I've also changed it to output rva in the output headers by default

@WopsS
Copy link
Owner

WopsS commented Apr 11, 2022

Nice! Thanks :D

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