mirror of
https://github.com/open-goal/jak-project
synced 2026-08-10 03:06:18 -04:00
[decompile] subdivide, wind-work, tie-work, bsp, focus (#1897)
- decompile `subdivide`, `wind-work`, `tie-work`, `bsp`, `focus` - support `ppacb` in compiler - don't assert when bitfield stuff fails due to constant propgataion weirdness - finish up history - div/mod unsigned assert fix in decompiler - empty assert fix in decompiler for failed `add` type prop - make jak 1 performance counters "work" (just measure time) - fix cast/typos on pcgtb/vftoi15
This commit is contained in:
@@ -320,10 +320,13 @@ std::optional<BitFieldDef> get_bitfield_initial_set(Form* form,
|
||||
int right = 0;
|
||||
int size = 64 - left;
|
||||
int offset = left - right;
|
||||
auto f = find_field(ts, type, offset + offset_in_bitfield, size, {});
|
||||
auto f = try_find_field(ts, type, offset + offset_in_bitfield, size, {});
|
||||
if (!f) {
|
||||
return {};
|
||||
}
|
||||
BitFieldDef def;
|
||||
def.value = value;
|
||||
def.field_name = f.name();
|
||||
def.field_name = f->name();
|
||||
def.is_signed = false; // we don't know.
|
||||
return def;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user