fix: use accurate length for enumerating

See merge request ryubing/ryujinx!49
This commit is contained in:
LotP 2025-06-03 23:20:55 -05:00 committed by GreemDev
parent d688fed7d2
commit 053a9cb549

View File

@ -193,7 +193,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)