Fix bug when opening patched nca filesystem with no base

This commit is contained in:
Alex Barney 2019-05-24 12:44:35 -05:00
parent 0fa9fccc5f
commit 279e180466

View file

@ -244,7 +244,7 @@ namespace LibHac.Fs.NcaUtils
public IFileSystem OpenFileSystemWithPatch(Nca patchNca, int index, IntegrityCheckLevel integrityCheckLevel) public IFileSystem OpenFileSystemWithPatch(Nca patchNca, int index, IntegrityCheckLevel integrityCheckLevel)
{ {
IStorage storage = OpenStorageWithPatch(patchNca, index, integrityCheckLevel); IStorage storage = OpenStorageWithPatch(patchNca, index, integrityCheckLevel);
NcaFsHeader header = Header.GetFsHeader(index); NcaFsHeader header = patchNca.Header.GetFsHeader(index);
return OpenFileSystem(storage, header); return OpenFileSystem(storage, header);
} }