Skip to content

Commit

Permalink
Asset Packer: Fix font terminator causing freezes/crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Nov 10, 2024
1 parent c9ea421 commit bdf2365
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/asset_packer.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def pack_font(src: pathlib.Path, dst: pathlib.Path):
.decode("unicode_escape")
.encode("latin_1")
)
font += b"\0"
dst.with_suffix(".u8f").write_bytes(font)
elif src.suffix == ".u8f":
if not dst.is_file():
Expand Down

0 comments on commit bdf2365

Please sign in to comment.