chaoticgd / ghidra-emotionengine-reloaded

An extension for Ghidra that adds support for the PlayStation 2.
Apache License 2.0
119 stars 11 forks source link

STABS: Anonymous union importing issues #16

Closed VelocityRa closed 1 year ago

VelocityRa commented 1 year ago

Game: https://hiddenpalace.org/Sly_Cooper_and_the_Thievius_Raccoonus_(May_19,_2002_prototype)

Lots of imported types contain this invalid type *__null__-1_-1:

As an example, take the VECTOR class. image

The struct as emitted with the C exporter is:

struct VECTOR { // 0x10
    /* 0x0 */ union { // 0x4
        /* 0x0 */ AS3 as;
        /* 0x0 */ float x;
    };
    /* 0x4 */ float y;
    /* 0x8 */ float z;
    /* 0xc */ float gUnused;
};

Not sure if significant, but on import the following errors are printed:

STABS> Type lookup failed: FE
STABS> Type lookup failed: FE
STABS> Type lookup failed: FE
STABS> Type lookup failed: FE
STABS> Type lookup failed: ASO
STABS> Type lookup failed: rtx_def
chaoticgd commented 1 year ago

This is fixed by #18.