x86jit: Disable replacements w/ breakpoints inside.

This does alter graphics (memcpys won't fire anymore), but it also means
breakpoints work which is nice.
This commit is contained in:
Unknown W. Brackets committed 2015-01-18 21:26:37 -08:00
1 parent ab8e2d56ec
commit 9cb1151b67
3 files changed
+39 -2

No files matched your search

+12
View File
@@ -150,6 +150,18 @@ bool CBreakPoints::IsTempBreakPoint(u32 addr)
return bp != INVALID_BREAKPOINT;
}
bool CBreakPoints::RangeContainsBreakPoint(u32 addr, u32 size)
{
const u32 end = addr + size;
for (const auto &bp : breakPoints_)
{
if (bp.addr >= addr && bp.addr < end)
return true;
}
return false;
}
void CBreakPoints::AddBreakPoint(u32 addr, bool temp)
{
size_t bp = FindBreakpoint(addr, true, temp);