Preparing the creation of a Ram Viewer

This commit is contained in:
Anonymus Raccoon
2020-02-17 00:32:10 +01:00
parent 3eb6b39292
commit 1bbf9cfe77
9 changed files with 95 additions and 10 deletions
+15 -1
View File
@@ -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 {