FakePDB icon indicating copy to clipboard operation
FakePDB copied to clipboard

Export local types (enums, structs) with dumpinfo

Open Pirulax opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. Export local types (enums, structs) with dumpinfo

Describe the solution you'd like I'm willing to write the code for it. I'd like to add a new section to the json, like so:

"local_types": {
    "structs": [
    	{
    		"name": "CPed",
    		"name_demangled": "CPed",
    		"size": 128,
    		"members": [
				{
					"type": "ePedType",
					"name": "m_nPedType",
					"offset": 4,
				}
    		]
    	}
    ],
    "enums": [
    	{
    		"name": "ePedType",
    		"name_demangled": "ePedType",
    		"values": [
    			["PED_TYPE_PLAYER", 1]
    		]
    	}
    ]
}

Describe alternatives you've considered I do have another tool to do this job, but I'd rather have it here.

Pirulax avatar Aug 27 '21 11:08 Pirulax

Are you okay with it? Just asking, cause I don't want to spend time on something that wont get merged.

Pirulax avatar Aug 27 '21 13:08 Pirulax

Looks OK (in any way I think it will be changed during implementation)

Mixaill avatar Aug 27 '21 14:08 Mixaill