Correct Pec Reader, offset is 4 bytes earlier, and that is a jump command that should be loaded.

pull/133/head
Tatarize 2021-09-30 02:59:47 -07:00
rodzic 24a11c648d
commit 2bcbfffe1b
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -31,8 +31,8 @@ def read_pec(f, out, pes_chart=None):
stitch_block_end = read_int_24le(f) - 5 + f.tell()
# The end of this value is already 5 into the stitchblock.
# 3 bytes, '\x31\xff\xf0', 6 2-byte shorts. 15 total.
f.seek(0x0F, 1)
# 3 bytes, '\x31\xff\xf0', 4 2-byte shorts. 11 total.
f.seek(0x0B, 1)
read_pec_stitches(f, out)
f.seek(stitch_block_end, 0)