diff --git a/libhac/Nso.cs b/libhac/Nso.cs index 11da2a6b..5b412593 100644 --- a/libhac/Nso.cs +++ b/libhac/Nso.cs @@ -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; } }