Skip to content

Commit

Permalink
decomp3: timer, display-h, decomp-h, file-io, pad (#3332)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hat-Kid authored Jan 24, 2024
1 parent b130c2f commit 3a2c57c
Show file tree
Hide file tree
Showing 22 changed files with 3,522 additions and 218 deletions.
6 changes: 6 additions & 0 deletions common/type_system/TypeSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2147,6 +2147,12 @@ std::optional<std::string> find_best_field_in_structure(const TypeSystem& ts,
} else {
int rel_offset = offset - field.offset();
// array case (and array encompasses what we want)
ASSERT_MSG(
type->get_size_in_memory() > 0,
fmt::format(
"In type {}, type size was 0 for array field {} of type {}, check that the type "
"is fully defined.",
st->get_name(), field.name(), field.type().print()));
int array_idx = rel_offset / type->get_size_in_memory();
if (!field.is_inline() &&
field.offset() + field.array_size() * type->get_load_size() > offset) {
Expand Down
Loading

0 comments on commit 3a2c57c

Please sign in to comment.