Skip to content

Commit

Permalink
ObjectExplorer: Add element_type_name when exporting il2cpp_dump if…
Browse files Browse the repository at this point in the history
… it is an array

For TDB >= 69
  • Loading branch information
dtlnor committed Nov 16, 2024
1 parent defa629 commit d3fbc4d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/mods/tools/ObjectExplorer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,16 @@ void ObjectExplorer::generate_sdk() {
type_entry["is_generic_type"] = t.is_generic_type();
type_entry["is_generic_type_definition"] = t.is_generic_type_definition();

#if TDB_VER >= 71
if (tdef->element_typeid_TBD != 0) {
type_entry["element_type_name"] = init_type(il2cpp_dump, tdb, tdef->element_typeid_TBD)->full_name;
}
#elif TDB_VER >= 69
if (tdef->element_typeid != 0) {
type_entry["element_type_name"] = init_type(il2cpp_dump, tdb, tdef->element_typeid)->full_name;
}
#endif

if (auto gtd = t.get_generic_type_definition(); gtd != nullptr) {
type_entry["generic_type_definition"] = gtd->get_full_name();
}
Expand Down

0 comments on commit d3fbc4d

Please sign in to comment.