mirror of
https://github.com/open-goal/jak-project
synced 2026-07-08 14:36:52 -04:00
[decomp2] game-info, game-task and task-control (#1884)
And everything else needed for them! A couple functions are bad currently. - fixes #1929 - untested on linux - fixes #1924 - now you need to type `,` before a lambda you want to put in a pair. - fix debugger symbol table in jak 2 - made the decompiler output `(meters 2)` instead of `(meters 2.0)` - fixed a bug with the bitfield enum special -1 case - made bad game text decomp not exit the decompiler - added `editable-player` and `script`
This commit is contained in:
@@ -950,10 +950,10 @@ Form* cast_to_bitfield_enum(const EnumType* type_info,
|
||||
s64 in,
|
||||
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;
|
||||
}
|
||||
auto elts = decompile_bitfield_enum_from_int(TypeSpec(type_info->get_name()), env.dts->ts, in);
|
||||
if (no_head) {
|
||||
ASSERT(elts.size() >= 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user