RED4ext.SDK icon indicating copy to clipboard operation
RED4ext.SDK copied to clipboard

Zoltan typedefs

Open jac3km4 opened this issue 2 years ago • 5 comments

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

jac3km4 avatar Apr 10 '22 12:04 jac3km4

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

WopsS avatar Apr 10 '22 13:04 WopsS

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

jac3km4 avatar Apr 10 '22 13:04 jac3km4

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

WopsS avatar Apr 10 '22 20:04 WopsS

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

jac3km4 avatar Apr 10 '22 23:04 jac3km4

Nice! Thanks :D

WopsS avatar Apr 11 '22 19:04 WopsS