Core:Rec: Adjust bounds check asserts to not erroneously trip

This commit is contained in:
TellowKrinkle 2025-03-25 22:16:29 -05:00 committed by Ty
parent 1030db87d4
commit 6681614f1a
2 changed files with 3 additions and 3 deletions

View File

@ -1736,7 +1736,7 @@ StartRecomp:
}
}
pxAssert(xGetPtr() < recPtrEnd);
pxAssert(xGetPtr() < SysMemory::GetIOPRecEnd());
pxAssert(xGetPtr() - recPtr < _64kb);
s_pCurBlockEx->x86size = xGetPtr() - recPtr;

View File

@ -900,7 +900,7 @@ u8* recEndThunk()
{
u8* block_end = x86Ptr;
pxAssert(block_end < recPtrEnd);
pxAssert(block_end < SysMemory::GetEERecEnd());
recPtr = block_end;
return block_end;
}
@ -2698,7 +2698,7 @@ StartRecomp:
}
}
pxAssert(xGetPtr() < recPtrEnd);
pxAssert(xGetPtr() < SysMemory::GetEERecEnd());
s_pCurBlockEx->x86size = static_cast<u32>(xGetPtr() - recPtr);