Mesen-SX/Core/Breakpoint.h

31 lines
609 B
C
Raw Normal View History

2019-03-01 20:27:49 -05:00
#pragma once
#include "stdafx.h"
enum class CpuType : uint8_t;
2019-03-01 20:27:49 -05:00
enum class SnesMemoryType;
struct AddressInfo;
enum class BreakpointType;
enum class BreakpointTypeFlags;
enum class BreakpointCategory;
class Breakpoint
{
public:
bool Matches(uint32_t memoryAddr, AddressInfo &info);
bool HasBreakpointType(BreakpointType bpType);
2019-03-01 20:27:49 -05:00
string GetCondition();
bool HasCondition();
CpuType GetCpuType();
2019-03-01 20:27:49 -05:00
bool IsEnabled();
bool IsMarked();
CpuType cpuType;
SnesMemoryType memoryType;
BreakpointTypeFlags type;
int32_t startAddr;
int32_t endAddr;
bool enabled;
bool markEvent;
char condition[1000];
};