mirror of
https://github.com/open-goal/jak-project
synced 2026-09-03 02:14:07 -04:00
decompiler: better automatic detection of art groups and joint-node-index macro detection (#3061)
This commit is contained in:
@@ -617,4 +617,20 @@ std::optional<std::string> Env::get_art_elt_name(int idx) const {
|
||||
}
|
||||
}
|
||||
|
||||
std::optional<std::string> Env::get_joint_node_name(int idx) const {
|
||||
ASSERT(dts);
|
||||
auto it = dts->jg_info.find(joint_geo());
|
||||
if (it == dts->jg_info.end()) {
|
||||
return {};
|
||||
} else {
|
||||
const auto& jg = it->second;
|
||||
auto it2 = jg.find(idx);
|
||||
if (it2 == jg.end()) {
|
||||
return {};
|
||||
} else {
|
||||
return it2->second;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace decompiler
|
||||
|
||||
Reference in New Issue
Block a user