Asset Packer: Fix font terminator causing freezes/crashes (#295)

* Asset Packer: Fix font terminator causing freezes/crashes

* Update changelog
This commit is contained in:
WillyJL
2024-11-10 05:08:52 +00:00
committed by GitHub
parent bacafc417f
commit 9e4ff668f4
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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():