Mesen/Core/Breakpoint.h

31 lines
473 B
C
Raw Normal View History

#pragma once
#include "stdafx.h"
#include "ExpressionEvaluator.h"
enum BreakpointType
{
Global = 0,
Execute = 1,
ReadRam = 2,
WriteRam = 4,
ReadVram = 8,
WriteVram = 16,
};
class Breakpoint
{
public:
Breakpoint();
~Breakpoint();
bool Matches(uint32_t memoryAddr, uint32_t absoluteAddr);
BreakpointType GetType();
string GetCondition();
void ClearCondition();
private:
BreakpointType _type;
int32_t _addr;
bool _isAbsoluteAddr;
char _condition[1000];
};