Mesen/Core/MemoryDumper.h

28 lines
908 B
C
Raw Normal View History

#pragma once
#include "stdafx.h"
#include "DebuggerTypes.h"
class PPU;
class MemoryManager;
class BaseMapper;
class CodeDataLogger;
class MemoryDumper
{
private:
shared_ptr<PPU> _ppu;
shared_ptr<MemoryManager> _memoryManager;
shared_ptr<BaseMapper> _mapper;
shared_ptr<CodeDataLogger> _codeDataLogger;
public:
MemoryDumper(shared_ptr<PPU> ppu, shared_ptr<MemoryManager> memoryManager, shared_ptr<BaseMapper> mapper, shared_ptr<CodeDataLogger> codeDataLogger);
uint32_t GetMemoryState(DebugMemoryType type, uint8_t *buffer);
void GetNametable(int nametableIndex, uint32_t* frameBuffer, uint8_t* tileData, uint8_t* paletteData);
void GetChrBank(int bankIndex, uint32_t* frameBuffer, uint8_t palette, bool largeSprites, CdlHighlightType highlightType);
void GetSprites(uint32_t* frameBuffer);
void GetPalette(uint32_t* frameBuffer);
void SetMemoryState(DebugMemoryType type, uint8_t *buffer);
};