mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-30 12:30:52 +00:00
31 lines
508 B
C++
31 lines
508 B
C++
#include "stdafx.h"
|
|
|
|
#include "Breakpoint.h"
|
|
|
|
Breakpoint::Breakpoint()
|
|
{
|
|
}
|
|
|
|
Breakpoint::~Breakpoint()
|
|
{
|
|
}
|
|
|
|
bool Breakpoint::Matches(uint32_t memoryAddr, uint32_t absoluteAddr)
|
|
{
|
|
return _addr == -1 || ((int32_t)memoryAddr == _addr && !_isAbsoluteAddr) || ((int32_t)absoluteAddr == _addr && _isAbsoluteAddr);
|
|
}
|
|
|
|
BreakpointType Breakpoint::GetType()
|
|
{
|
|
return _type;
|
|
}
|
|
|
|
string Breakpoint::GetCondition()
|
|
{
|
|
return _condition;
|
|
}
|
|
|
|
void Breakpoint::ClearCondition()
|
|
{
|
|
memset(_condition, 0, sizeof(_condition));
|
|
} |