mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-02 21:47:18 +01:00
ava: Fix crash when extracting sections from NCA with no data section (#5002)
Tested against Omega Strickers.
This commit is contained in:
parent
cb4b58052f
commit
b3bf05356b
@ -193,7 +193,7 @@ namespace Ryujinx.Ava.Common
|
|||||||
if (nca.Header.ContentType == NcaContentType.Program)
|
if (nca.Header.ContentType == NcaContentType.Program)
|
||||||
{
|
{
|
||||||
int dataIndex = Nca.GetSectionIndexFromType(NcaSectionType.Data, 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;
|
patchNca = nca;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user