Creating the layout of a DMA viewer

This commit is contained in:
Anonymus Raccoon
2020-05-28 14:13:12 +02:00
parent 29540ce9db
commit 5e0f6104fe
11 changed files with 264 additions and 12 deletions
+17
View File
@@ -153,4 +153,21 @@ namespace ComSquare
this->_cgramViewer = nullptr;
#endif
}
void SNES::disableDMADebugging()
{
#ifdef DEBUGGER_ENABLED
this->_dmaViewer = nullptr;
#endif
}
void SNES::enableDMADebugging()
{
#ifdef DEBUGGER_ENABLED
if (this->_dmaViewer)
this->_dmaViewer->focus();
else
this->_dmaViewer = std::make_unique<Debugger::DMADebug>(*this);
#endif
}
}