mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Better handling of the IsCompressed flag in Nso.cs
This commit is contained in:
parent
e694833e0c
commit
0efc550fa6
1 changed files with 4 additions and 1 deletions
|
@ -110,7 +110,10 @@ namespace LibHac
|
|||
{
|
||||
byte[] compressed = new byte[CompressedSize];
|
||||
OpenCompressedStream().Read(compressed, 0, (int) CompressedSize);
|
||||
return Lz4.Decompress(compressed, (int) DecompressedSize);
|
||||
if (IsCompressed)
|
||||
return Lz4.Decompress(compressed, (int)DecompressedSize);
|
||||
else
|
||||
return compressed;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue