Creating a base window

This commit is contained in:
AnonymusRaccoon
2020-02-14 17:55:53 +01:00
parent c8e6c0d4f9
commit 4f150441a3
8 changed files with 86 additions and 6 deletions
+11
View File
@@ -5,6 +5,7 @@
#include <ios>
#include <iostream>
#include "SNES.hpp"
#include "Debugger/DebugCpu.hpp"
namespace ComSquare
{
@@ -19,4 +20,14 @@ namespace ComSquare
bus->mapComponents(*this);
renderer.setWindowName(this->cartridge->header.gameName);
}
void SNES::enableCPUDebugging()
{
this->cpu = std::make_shared<Debugger::CPUDebug>(*this->cpu, *this);
}
void SNES::disableCPUDebugging()
{
this->cpu = std::make_shared<CPU::CPU>(*this->cpu);
}
}