mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-12 05:54:03 +00:00
Adding a header viewer
This commit is contained in:
+15
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user