mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-01 06:10:00 +01:00
23 lines
431 B
C++
23 lines
431 B
C++
#include "breakpoint_handler.h"
|
|
|
|
extern void ppu_breakpoint(u32 loc, bool is_adding);
|
|
|
|
bool breakpoint_handler::HasBreakpoint(u32 loc) const
|
|
{
|
|
return m_breakpoints.contains(loc);
|
|
}
|
|
|
|
bool breakpoint_handler::AddBreakpoint(u32 loc)
|
|
{
|
|
m_breakpoints.insert(loc);
|
|
ppu_breakpoint(loc, true);
|
|
return true;
|
|
}
|
|
|
|
bool breakpoint_handler::RemoveBreakpoint(u32 loc)
|
|
{
|
|
m_breakpoints.erase(loc);
|
|
ppu_breakpoint(loc, false);
|
|
return true;
|
|
}
|