fix: use accurate length for enumerating

See merge request ryubing/ryujinx!49
This commit is contained in:
LotP
2025-06-20 16:26:30 -05:00
committed by KeatonTheBot
parent 8611e42a2e
commit 05c3f2a250
+1 -1
View File
@@ -190,7 +190,7 @@ namespace ARMeilleure.Translation.PTC
_infosStream.Seek(0L, SeekOrigin.Begin);
bool foundBadFunction = false;
for (int index = 0; index < GetEntriesCount(); index++)
for (int index = 0; index < _infosStream.Length / Unsafe.SizeOf<InfoEntry>(); index++)
{
InfoEntry infoEntry = DeserializeStructure<InfoEntry>(_infosStream);
foreach (ulong address in blacklist)