[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:
water111
2022-09-17 14:58:25 -04:00
committed by GitHub
parent 80526dfca0
commit 1b45aab3cc
50 changed files with 3286 additions and 861 deletions
+5 -2
View File
@@ -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;
}