mirror of
https://github.com/open-goal/jak-project
synced 2026-07-08 14:36:52 -04:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user