Skip to content

import_ghidra - nested enum-indexed array types named in wrong order #82

@quietust

Description

@quietust

When importing a structure which contains nested <static-array>s which each have their own index-enum, the composite types are being named backwards.

For example, in the creature_graphicsst structure:
<static-array name='profession_add_color' original-name='creature_unit_texpos_addcolor' index-enum='creature_graphics_role'><static-array type-name='bool' index-enum='profession'/></static-array>

The inner array is bool[<profession>135] and the outer array adds [<creature_graphics_role>7], but the outer array structure is being named bool[<profession>135][<creature_graphics_role>7] when it should be bool[<creature_graphics_role>7][<profession>135] (to match the actual definition char creature_unit_texpos_addcolor[CREATURE_TEXTURENUM][PLAYUNITNUM] within the Bay12 headers).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions