mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-12 14:04:27 +00:00
Preparing the creation of a Ram Viewer
This commit is contained in:
+15
-1
@@ -6,7 +6,7 @@
|
||||
#include <iostream>
|
||||
#include "SNES.hpp"
|
||||
#ifdef DEBUGGER_ENABLED
|
||||
#include "Debugger/DebugCpu.hpp"
|
||||
#include "Debugger/CPUDebug.hpp"
|
||||
#endif
|
||||
|
||||
namespace ComSquare
|
||||
@@ -36,6 +36,20 @@ namespace ComSquare
|
||||
this->cpu = std::make_shared<CPU::CPU>(*this->cpu);
|
||||
}
|
||||
|
||||
void SNES::enableRamViewer()
|
||||
{
|
||||
#ifdef DEBUGGER_ENABLED
|
||||
this->_ramViewer = std::make_shared<Debugger::RamViewer>(*this);
|
||||
#endif
|
||||
}
|
||||
|
||||
void SNES::disableRamDebugging()
|
||||
{
|
||||
#ifdef DEBUGGER_ENABLED
|
||||
this->_ramViewer = nullptr;
|
||||
#endif
|
||||
}
|
||||
|
||||
void SNES::update()
|
||||
{
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user