Making the RAM a template

This commit is contained in:
AnonymusRaccoon
2020-02-13 18:22:17 +01:00
parent 2735238329
commit 41355191aa
10 changed files with 70 additions and 83 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ namespace ComSquare
cpu(new CPU::CPU(bus, cartridge->header)),
ppu(new PPU::PPU(bus, renderer)),
apu(new APU::APU()),
wram(new Ram::Ram(16384)),
sram(new Ram::Ram(this->cartridge->header.sramSize))
wram(new Ram::BasicRam(16384)),
sram(new Ram::BasicRam(this->cartridge->header.sramSize))
{
bus->mapComponents(*this);
renderer.setWindowName(this->cartridge->header.gameName);