mirror of
https://github.com/libretro/MesenCE.git
synced 2026-11-10 03:02:05 -10:00
* Code: Add auto-formatting rules for C++ projects (clang-format) and enforce code style via "clang-format" and "dotnet format" * fix ui format warnings
37 lines
801 B
C++
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];
|
|
}; |