Better handling of the IsCompressed flag in Nso.cs

This commit is contained in:
shadowninja108 2018-09-22 21:52:30 -07:00
parent e694833e0c
commit 0efc550fa6

View file

@ -110,7 +110,10 @@ namespace LibHac
{
byte[] compressed = new byte[CompressedSize];
OpenCompressedStream().Read(compressed, 0, (int) CompressedSize);
if (IsCompressed)
return Lz4.Decompress(compressed, (int)DecompressedSize);
else
return compressed;
}
}