typelib: Fix field offsets for attributes

This fixes a bug where the decompiler could not recognize enums by their
C identifiers because it could not correctly read attributes.

Fixes #177.
This commit is contained in:
James Westman 2024-10-19 10:21:13 -05:00
parent d7097cad01
commit 3b6dcf072d
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
4 changed files with 20 additions and 3 deletions

View file

@ -148,8 +148,8 @@ class Typelib:
SIGNATURE_ARGUMENTS = Field(0x8, "offset")
ATTR_OFFSET = Field(0x0, "u32")
ATTR_NAME = Field(0x0, "string")
ATTR_VALUE = Field(0x0, "string")
ATTR_NAME = Field(0x4, "string")
ATTR_VALUE = Field(0x8, "string")
TYPE_BLOB_TAG = Field(0x0, "u8", 3, 5)
TYPE_BLOB_INTERFACE = Field(0x2, "dir_entry")