From d32635e07ae4e6078ccedc461c631f9564d82435 Mon Sep 17 00:00:00 2001 From: Mc-muffin <8714476+Mc-muffin@users.noreply.github.com> Date: Wed, 14 Feb 2024 06:40:39 -0500 Subject: [PATCH] Fix a stupid in PAK packing --- pythonlib/formats/pak.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pythonlib/formats/pak.py b/pythonlib/formats/pak.py index ae6c7c1..5a9d654 100644 --- a/pythonlib/formats/pak.py +++ b/pythonlib/formats/pak.py @@ -155,11 +155,11 @@ class Pak: offset = 4 + (8 * len(blobs)) sizes = [0] + list([len(x) for x in blobs]) if self.align: - offset = offset + (0x10 - (offset % 0x10)) + offset = (offset + 0xF) & ~0xF for i, j in zip(sizes[::1], sizes[1::1]): if self.align: - i = i + (0x10 - (i % 0x10)) + i = (i + 0xF) & ~0xF out += struct.pack("