2016-11-19 04:50:05 +00:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
2016-12-09 05:02:56 +00:00
|
|
|
#include "DebuggerTypes.h"
|
2016-11-19 04:50:05 +00:00
|
|
|
|
|
|
|
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);
|
|
|
|
};
|