mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
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:
parent
fdf11b2621
commit
1974adb33e
1 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue