mirror of
https://github.com/Virtual-World-RE/NeoGF.git
synced 2024-11-15 10:45:33 +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):
|
def bytes_align(bout: bytes):
|
||||||
success = False
|
while not hex(len(bout)).endswith("000"):
|
||||||
while not success:
|
bout.extend(b"\x00")
|
||||||
bout.extend(b"\x00\x00")
|
|
||||||
address = len(bout)
|
|
||||||
if hex(address).endswith("00"):
|
|
||||||
break
|
|
||||||
|
|
||||||
|
|
||||||
def pzz_compress(b):
|
def pzz_compress(b):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user