Mixaill / FakePDB

Tool for PDB generation from IDA Pro database
Apache License 2.0
544 stars 61 forks source link

Export local types (enums, structs) with dumpinfo #23

Open Pirulax opened 3 years ago

Pirulax commented 3 years ago

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 commented 3 years ago

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

Mixaill commented 3 years ago

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