Adding a header viewer

This commit is contained in:
Anonymus Raccoon
2020-02-18 23:07:21 +01:00
parent 0e97bcaf43
commit 381d624e13
9 changed files with 519 additions and 13 deletions
+15 -1
View File
@@ -43,7 +43,7 @@ namespace ComSquare
#endif
}
void SNES::disableRamDebugging()
void SNES::disableRamViewer()
{
#ifdef DEBUGGER_ENABLED
this->_ramViewer = nullptr;
@@ -56,4 +56,18 @@ namespace ComSquare
this->ppu->update(cycleCount);
this->apu->update(cycleCount);
}
void SNES::enableHeaderViewer()
{
#ifdef DEBUGGER_ENABLED
this->_headerViewer = std::make_shared<Debugger::HeaderViewer>(*this->cartridge);
#endif
}
void SNES::disableHeaderViewer()
{
#ifdef DEBUGGER_ENABLED
this->_headerViewer = nullptr;
#endif
}
}