mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-26 07:39:52 -06:00
This reverts commit 5c3cfb84c0
.
This commit is contained in:
@ -42,14 +42,15 @@ namespace Ryujinx.HLE.Loaders.Processes
|
||||
|
||||
foreach (DirectoryEntryEx fileEntry in partitionFileSystem.EnumerateEntries("/", "*.nca"))
|
||||
{
|
||||
Nca nca = partitionFileSystem.GetNca(device.FileSystem.KeySet, fileEntry.FullPath);
|
||||
Nca nca = partitionFileSystem.GetNca(device, fileEntry.FullPath);
|
||||
|
||||
if (!nca.IsProgram())
|
||||
if (!nca.IsProgram() && nca.IsPatch())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
ulong currentMainProgramId = nca.GetProgramIdBase();
|
||||
ulong currentProgramId = nca.Header.TitleId;
|
||||
ulong currentMainProgramId = currentProgramId & ~0xFFFul;
|
||||
|
||||
if (applicationId == 0 && currentMainProgramId != 0)
|
||||
{
|
||||
@ -66,7 +67,7 @@ namespace Ryujinx.HLE.Loaders.Processes
|
||||
break;
|
||||
}
|
||||
|
||||
hasIndex[nca.GetProgramIndex()] = true;
|
||||
hasIndex[(int)(currentProgramId & 0xF)] = true;
|
||||
}
|
||||
|
||||
if (programCount == 0)
|
||||
|
Reference in New Issue
Block a user