mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-07 17:07:15 +00:00
Revert "PPTC: fix rare EndOfStreamException in ContainsBlacklistedFunctions"
This reverts commit 1156307ef913b1cd86ee083b7c8a0526c68c9567
This commit is contained in:
parent
81412c7dd5
commit
84686d50cd
@ -193,7 +193,7 @@ namespace ARMeilleure.Translation.PTC
|
|||||||
_infosStream.Seek(0L, SeekOrigin.Begin);
|
_infosStream.Seek(0L, SeekOrigin.Begin);
|
||||||
bool foundBadFunction = false;
|
bool foundBadFunction = false;
|
||||||
|
|
||||||
for (int index = 0; index < _infosStream.Length; index++)
|
for (int index = 0; index < GetEntriesCount(); index++)
|
||||||
{
|
{
|
||||||
InfoEntry infoEntry = DeserializeStructure<InfoEntry>(_infosStream);
|
InfoEntry infoEntry = DeserializeStructure<InfoEntry>(_infosStream);
|
||||||
foreach (ulong address in blacklist)
|
foreach (ulong address in blacklist)
|
||||||
@ -201,7 +201,7 @@ namespace ARMeilleure.Translation.PTC
|
|||||||
if (infoEntry.Address == address)
|
if (infoEntry.Address == address)
|
||||||
{
|
{
|
||||||
containsBlacklistedFunctions = true;
|
containsBlacklistedFunctions = true;
|
||||||
Logger.Warning?.Print(LogClass.Ptc, "Translation cache invalidated: Found blacklisted functions");
|
Logger.Warning?.Print(LogClass.Ptc, "PPTC cache invalidated: Found blacklisted functions in PPTC cache");
|
||||||
foundBadFunction = true;
|
foundBadFunction = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user