diff --git a/src/LibHac/IO/NcaUtils/NcaFsHeader.cs b/src/LibHac/IO/NcaUtils/NcaFsHeader.cs index 6fcf1ec7..e4dd22f1 100644 --- a/src/LibHac/IO/NcaUtils/NcaFsHeader.cs +++ b/src/LibHac/IO/NcaUtils/NcaFsHeader.cs @@ -2,6 +2,8 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +// ReSharper disable ImpureMethodCallOnReadonlyValueField + namespace LibHac.IO.NcaUtils { public struct NcaFsHeader diff --git a/src/LibHac/IO/NcaUtils/NcaHeader.cs b/src/LibHac/IO/NcaUtils/NcaHeader.cs index 831bf082..469b670b 100644 --- a/src/LibHac/IO/NcaUtils/NcaHeader.cs +++ b/src/LibHac/IO/NcaUtils/NcaHeader.cs @@ -155,6 +155,7 @@ namespace LibHac.IO.NcaUtils Span expectedHash = GetFsHeaderHash(index); int offset = NcaHeaderStruct.FsHeadersOffset + NcaHeaderStruct.FsHeaderSize * index; + // ReSharper disable once ImpureMethodCallOnReadonlyValueField Memory headerData = _header.Slice(offset, NcaHeaderStruct.FsHeaderSize); byte[] actualHash = Crypto.ComputeSha256(headerData.ToArray(), 0, NcaHeaderStruct.FsHeaderSize);