Skip to content

Commit

Permalink
FF7: Fix field chunk size calculation for the chunk number 9 (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaphod77 authored Dec 7, 2024
1 parent 99f7571 commit d84e7c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

- Full commit list since last stable release: https://github.com/julianxhokaxhiu/FFNx/compare/1.21.1...master

## FF7

- Core: Fix field chunk size calculation for the chunk number 9 ( https://github.com/julianxhokaxhiu/FFNx/pull/763 )

# 1.21.1

- Full commit list since last stable release: https://github.com/julianxhokaxhiu/FFNx/compare/1.21.0...1.21.1
Expand Down
4 changes: 2 additions & 2 deletions src/ff7/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,8 @@ int ff7_read_field_file(char* path)
}
else
{
//there is no section after, so we use known_field_buffer_size.
data_len = *ff7_externals.known_field_buffer_size - data_ptr - 0x4;
// there is no section after, so we have to trust it.
data_len = *(uint32_t*)(original_field_data + data_ptr);
}

ff7_field_file_chunked[n].size = data_len;
Expand Down

0 comments on commit d84e7c4

Please sign in to comment.