We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bef9cc9 commit e60578aCopy full SHA for e60578a
UnityPy/files/BundleFile.py
@@ -502,7 +502,7 @@ def decompress_data(
502
The decompressed data."""
503
comp_flag = CompressionFlags(flags & ArchiveFlags.CompressionTypeMask)
504
505
- if self.decryptor is not None and flags & 0x100:
+ if self.decryptor is not None and flags & 0x100 and comp_flag != CompressionFlags.NONE:
506
compressed_data = self.decryptor.decrypt_block(compressed_data, index)
507
508
if comp_flag in CompressionHelper.DECOMPRESSION_MAP:
0 commit comments