mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-22 22:45:52 +00:00
Creating a base window
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user