From 279e180466b9dfcb690493471edf64fb34389305 Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Fri, 24 May 2019 12:44:35 -0500 Subject: [PATCH] Fix bug when opening patched nca filesystem with no base --- src/LibHac/Fs/NcaUtils/Nca.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LibHac/Fs/NcaUtils/Nca.cs b/src/LibHac/Fs/NcaUtils/Nca.cs index 9d8c4675..4bc06ff7 100644 --- a/src/LibHac/Fs/NcaUtils/Nca.cs +++ b/src/LibHac/Fs/NcaUtils/Nca.cs @@ -244,7 +244,7 @@ namespace LibHac.Fs.NcaUtils public IFileSystem OpenFileSystemWithPatch(Nca patchNca, int index, IntegrityCheckLevel integrityCheckLevel) { IStorage storage = OpenStorageWithPatch(patchNca, index, integrityCheckLevel); - NcaFsHeader header = Header.GetFsHeader(index); + NcaFsHeader header = patchNca.Header.GetFsHeader(index); return OpenFileSystem(storage, header); }