Implemented stone-unpack mode

This commit is contained in:
Luxferre
2021-12-31 00:56:58 +02:00
parent a3f4e558d3
commit d4b359805f
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -5,8 +5,7 @@ import os
import sys
import struct
import lzma
#from custlzma.lzma_decoder import LZMADecoder # (for LZMA_SPD decompression)
from custlzma.frenchlzma import DecodeurLZMA
from custlzma.frenchlzma import DecodeurLZMASPD # (for LZMA_SPD decompression)
# common utils
@@ -56,7 +55,7 @@ def unpack_block(blkData, blkPacSize, targetFile):
print('Found LZMA blocks: %d, decompressing...' % lzmaBlocksAmount)
dest = b''
inSizePure = blkPacSize * 2
lzmaDec = DecodeurLZMA()
lzmaDec = DecodeurLZMASPD()
for i in range(lzmaBlocksAmount):
if blocksOffTbl is not None:
dataOffset = getTblOffset(blocksOffTbl,i)