2019-03-01 20:27:49 -05:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
2021-03-10 11:13:28 -05: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:
|
2021-03-10 11:13:28 -05:00
|
|
|
bool Matches(uint32_t memoryAddr, AddressInfo &info);
|
2020-10-29 02:19:23 +03:00
|
|
|
bool HasBreakpointType(BreakpointType bpType);
|
2019-03-01 20:27:49 -05:00
|
|
|
string GetCondition();
|
|
|
|
bool HasCondition();
|
|
|
|
|
2019-07-25 22:22:09 -04:00
|
|
|
CpuType GetCpuType();
|
2019-03-01 20:27:49 -05:00
|
|
|
bool IsEnabled();
|
|
|
|
bool IsMarked();
|
2020-10-29 02:19:23 +03:00
|
|
|
|
|
|
|
CpuType cpuType;
|
|
|
|
SnesMemoryType memoryType;
|
|
|
|
BreakpointTypeFlags type;
|
|
|
|
int32_t startAddr;
|
|
|
|
int32_t endAddr;
|
|
|
|
bool enabled;
|
|
|
|
bool markEvent;
|
|
|
|
char condition[1000];
|
2021-03-10 11:13:28 -05:00
|
|
|
};
|