mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Properly handle opening patch NCAs with an empty base section
This commit is contained in:
parent
d189826203
commit
353c538c6b
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ namespace LibHac.Fs.NcaUtils
|
||||||
public IStorage OpenRawStorageWithPatch(Nca patchNca, int index)
|
public IStorage OpenRawStorageWithPatch(Nca patchNca, int index)
|
||||||
{
|
{
|
||||||
IStorage patchStorage = patchNca.OpenRawStorage(index);
|
IStorage patchStorage = patchNca.OpenRawStorage(index);
|
||||||
IStorage baseStorage = OpenRawStorage(index);
|
IStorage baseStorage = SectionExists(index) ? OpenRawStorage(index) : new NullStorage();
|
||||||
|
|
||||||
NcaFsHeader header = patchNca.Header.GetFsHeader(index);
|
NcaFsHeader header = patchNca.Header.GetFsHeader(index);
|
||||||
NcaFsPatchInfo patchInfo = header.GetPatchInfo();
|
NcaFsPatchInfo patchInfo = header.GetPatchInfo();
|
||||||
|
|
Loading…
Reference in a new issue