Don't use in-place decompression for NSOs

Move back to using in-place decompression in the future when the decompress function has been fixed
This commit is contained in:
Alex Barney 2020-04-28 22:54:06 -07:00
parent fdf11b2621
commit 1974adb33e

View file

@ -78,7 +78,10 @@ namespace LibHac.Loader
// Uncompress if necessary.
if (isCompressed)
{
Lz4.Decompress(buffer.Slice((int)loadAddress), buffer);
// todo: Fix in-place decompression
// Lz4.Decompress(buffer.Slice((int)loadAddress), buffer);
byte[] decomp = Lz4.Decompress(buffer.Slice((int)loadAddress).ToArray(), buffer.Length);
decomp.CopyTo(buffer);
}
// Check hash if necessary.