[ARC] Implement support for compression methods 5, 6 and 7 (crunch).

This commit is contained in:
2025-09-02 03:51:20 +01:00
parent f8e4ceab71
commit dfeda1f426
5 changed files with 135 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ public partial class PackStream : Stream
// Call native decompressor
int err = arc_decompress_pack(inBuf, inBuf.Length, _decoded, ref outLen);
if(err != 0) throw new InvalidOperationException("LH5 decompression failed");
if(err != 0) throw new InvalidOperationException("Pack decompression failed");
// Adjust actual length in case it differs
_length = outLen;