1
0
forked from MeloNX/MeloNX

fix update searching

(cherry picked from commit c078a561ef781115ee5c7087e071ec141ee9f278)
This commit is contained in:
Emmanuel Hansen 2024-07-23 23:49:57 +00:00
parent 8226f77ddd
commit 45c4f56c1d

View File

@ -158,6 +158,8 @@ namespace Ryujinx.HLE.Loaders.Processes.Extensions
updatePartitionFileSystem = PartitionFileSystemUtils.OpenApplicationFileSystem(updateStream, false, fileSystem); updatePartitionFileSystem = PartitionFileSystemUtils.OpenApplicationFileSystem(updateStream, false, fileSystem);
} }
if (updatePartitionFileSystem != null)
{
foreach ((ulong applicationTitleId, ContentMetaData content) in updatePartitionFileSystem.GetContentData(ContentMetaType.Patch, fileSystem, checkLevel)) foreach ((ulong applicationTitleId, ContentMetaData content) in updatePartitionFileSystem.GetContentData(ContentMetaType.Patch, fileSystem, checkLevel))
{ {
if ((applicationTitleId & ~0x1FFFUL) != titleIdBase) if ((applicationTitleId & ~0x1FFFUL) != titleIdBase)
@ -169,6 +171,7 @@ namespace Ryujinx.HLE.Loaders.Processes.Extensions
updateControlNca = content.GetNcaByType(fileSystem.KeySet, ContentType.Control, programIndex); updateControlNca = content.GetNcaByType(fileSystem.KeySet, ContentType.Control, programIndex);
break; break;
} }
}
return (updatePatchNca, updateControlNca); return (updatePatchNca, updateControlNca);
} }