Skip to content

automatically assemble struct fields with given static addresses into a full struct

Notifications You must be signed in to change notification settings

DucaRii/static_struct_assembler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

static_struct_assembler

automatically assemble struct fields with given static addresses into a full struct

edit STRUCT_NAME on line 20 to your wished name

example:

main.cpp

auto struct_fields = std::vector<info_entry_t>
{
	ADD_FIELD( "m_iExample", int32_t, 0x02 ),
	ADD_FIELD( "m_iExample2", int32_t, 0x22C ),
	ADD_FIELD( "m_fExample1", float_t, 0x420 ),
};

generated out.hpp

struct example_t
{
	int m_iExample; // 0x2
	char pad_0[ 0x226 ];// 0x6
	int m_iExample2; // 0x22c
	char pad_1[ 0x1f0 ];// 0x230
	float m_fExample2; // 0x420
};

About

automatically assemble struct fields with given static addresses into a full struct

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages