mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-27 17:07:10 +02:00
ava: Fix crash when extracting sections from NCA with no data section (#5002)
Tested against Omega Strickers.
This commit is contained in:
parent
174d6a47ab
commit
fcfef1a3c5
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ namespace Ryujinx.Ava.Common
|
|||
if (nca.Header.ContentType == NcaContentType.Program)
|
||||
{
|
||||
int dataIndex = Nca.GetSectionIndexFromType(NcaSectionType.Data, NcaContentType.Program);
|
||||
if (nca.Header.GetFsHeader(dataIndex).IsPatchSection())
|
||||
if (nca.SectionExists(NcaSectionType.Data) && nca.Header.GetFsHeader(dataIndex).IsPatchSection())
|
||||
{
|
||||
patchNca = nca;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue