mirror of
https://github.com/Virtual-World-RE/NeoGF.git
synced 2024-12-24 18:31:35 +01:00
Fix bytes_align ?
This commit is contained in:
parent
d1d08921e3
commit
267cf14d18
|
@ -58,12 +58,8 @@ def pzz_decompress(compressed_bytes: bytes):
|
|||
|
||||
|
||||
def bytes_align(bout: bytes):
|
||||
success = False
|
||||
while not success:
|
||||
bout.extend(b"\x00\x00")
|
||||
address = len(bout)
|
||||
if hex(address).endswith("00"):
|
||||
break
|
||||
while not hex(len(bout)).endswith("000"):
|
||||
bout.extend(b"\x00")
|
||||
|
||||
|
||||
def pzz_compress(b):
|
||||
|
|
Loading…
Reference in New Issue
Block a user