This commit is contained in:
Clément Le Bihan
2021-06-23 22:02:12 +02:00
parent 4de2d61aaa
commit 6c1fc61a28
9 changed files with 38 additions and 47 deletions
+5 -5
View File
@@ -185,17 +185,17 @@ namespace ComSquare
void SNES::disableTileViewerDebugging()
{
#ifdef DEBUGGER_ENABLED
this->_tileViewer = nullptr;
this->_tileViewer = nullptr;
#endif
}
void SNES::enableTileViewerDebugging()
{
#ifdef DEBUGGER_ENABLED
if (this->_tileViewer)
this->_tileViewer->focus();
else
this->_tileViewer = std::make_unique<Debugger::TileViewer>(*this, *this->ppu);
if (this->_tileViewer)
this->_tileViewer->focus();
else
this->_tileViewer = std::make_unique<Debugger::TileViewer>(*this, *this->ppu);
#endif
}
}