Skip to content

Commit

Permalink
[Normal] Update Some Code
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWindScholar committed Aug 2, 2024
1 parent c26367e commit a92c790
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ def data_for_op(self, operation, out_file, old_file):
op = operation["operation"]

# assert hashlib.sha256(data).digest() == op.data_sha256_hash, 'operation data hash mismatch'
if op.type == op.REPLACE_ZSTD and payloadfile.read(4) == b'\x28\xb5\x2f\xfd':
op_type = op.type
else:
if op.type == op.REPLACE_ZSTD and payloadfile.read(4) != b'\x28\xb5\x2f\xfd':
op_type = op.REPLACE
else:
op_type = op.type
payloadfile.seek(payloadfile.tell() - 4)
if op_type == op.REPLACE_ZSTD:
dec = zstandard.ZstdDecompressor().decompressobj()
Expand Down

0 comments on commit a92c790

Please sign in to comment.