decomp: logic-target (#1861)

Also adds all names for `focus-status`.

Closes #1859 and updates ref tests for Jak 1 for this edge case.
This commit is contained in:
Hat Kid
2022-09-09 00:26:33 +02:00
committed by GitHub
parent f3c63f26bb
commit bb777e4bac
46 changed files with 8461 additions and 937 deletions
+3
View File
@@ -944,6 +944,9 @@ Form* cast_to_bitfield_enum(const EnumType* type_info,
bool no_head) {
ASSERT(type_info->is_bitfield());
auto elts = decompile_bitfield_enum_from_int(TypeSpec(type_info->get_name()), env.dts->ts, in);
if (in == -1) {
return nullptr;
}
if (no_head) {
ASSERT(elts.size() >= 1);
}