Files
SourMesen e391fd8f9a Code: Add auto-formatting rules for C++ (clang-format) and enforce in CI via "clang-format" and "dotnet format" (#78)
* Code: Add auto-formatting rules for C++ projects (clang-format) and enforce code style via "clang-format" and "dotnet format"

* fix ui format warnings
2026-04-30 06:03:55 -07:00

37 lines
801 B
C++

#pragma once
#include "pch.h"
enum class CpuType : uint8_t;
enum class MemoryType;
struct AddressInfo;
enum class BreakpointType;
enum class BreakpointTypeFlags;
enum class MemoryOperationType;
struct MemoryOperationInfo;
class Breakpoint
{
public:
template<uint8_t accessWidth = 1> bool Matches(MemoryOperationInfo& opInfo, AddressInfo& info);
bool HasBreakpointType(BreakpointType type);
string GetCondition();
bool HasCondition();
uint32_t GetId();
CpuType GetCpuType();
bool IsEnabled();
bool IsMarked();
bool IsAllowedForOpType(MemoryOperationType opType);
private:
uint32_t _id;
CpuType _cpuType;
MemoryType _memoryType;
BreakpointTypeFlags _type;
int32_t _startAddr;
int32_t _endAddr;
bool _enabled;
bool _markEvent;
bool _ignoreDummyOperations;
char _condition[1000];
};