Skip to content

Commit

Permalink
Merge pull request #101 from ThanatosGit/fix-pkg
Browse files Browse the repository at this point in the history
Skip over correct length for the header in pkg files
  • Loading branch information
ThanatosGit authored Nov 18, 2023
2 parents b731c49 + cddd5e8 commit 0e58da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mercury_engine_data_structures/formats/pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _build(self, obj: construct.Container, stream, context, path):
construct.stream_seek(stream, 2 * self.int_size.length, 1, path)

# Skip over file headers
construct.stream_seek(stream, len(obj.files) * file_entry_size, 1, path)
construct.stream_seek(stream, self.int_size.length + len(obj.files) * file_entry_size, 1, path)

# Align to 128 bytes
AlignTo(128)._build(None, stream, context, path)
Expand Down

0 comments on commit 0e58da4

Please sign in to comment.