d2r2: expand tag deduplication to both namespaces and types; gather/deduplicate/convert namespaces

This commit is contained in:
Ryan Fleury committed 2026-05-04 13:14:13 -07:00
1 parent 7157e813a0
commit 8f65f466f5
6 files changed
+268 -137

No files matched your search

+13 -4
View File
@@ -7,10 +7,19 @@
////////////////////////////////
//~ rjf: Helper Types
typedef struct D2R2_UniqueTypeTagNode D2R2_UniqueTypeTagNode;
struct D2R2_UniqueTypeTagNode
typedef enum D2R2_UniqueTagKind
{
D2R2_UniqueTypeTagNode *next;
D2R2_UniqueTagKind_Type,
D2R2_UniqueTagKind_Namespace,
D2R2_UniqueTagKind_COUNT
}
D2R2_UniqueTagKind;
typedef struct D2R2_UniqueTagNode D2R2_UniqueTagNode;
struct D2R2_UniqueTagNode
{
D2R2_UniqueTagNode *next;
D2R2_UniqueTagKind kind;
U64 hash;
U64 info_off;
U64 order_idx;
@@ -36,7 +45,7 @@ struct D2R2_ConvertParams
////////////////////////////////
//~ rjf: Helpers
internal int d2r2_unique_type_tag_node_is_less_than(D2R2_UniqueTypeTagNode **l, D2R2_UniqueTypeTagNode **r);
internal int d2r2_unique_tag_node_is_less_than(D2R2_UniqueTagNode **l, D2R2_UniqueTagNode **r);
////////////////////////////////
//~ rjf: Main Conversion Entry Point (New)