Mesen-SX/Core/Breakpoint.h

32 lines
609 B
C
Raw Normal View History

2019-03-01 20:27:49 -05:00
#pragma once
#include "stdafx.h"
2020-12-19 23:30:09 +03:00
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:
2020-12-19 23:30:09 +03:00
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];
2020-12-19 23:30:09 +03:00
};