Cleaning up rom data

This commit is contained in:
Zoe Roux
2021-07-06 23:06:02 +02:00
parent 0d0dbc9b02
commit 44361c8482
10 changed files with 85 additions and 75 deletions
+2 -1
View File
@@ -11,7 +11,7 @@ namespace ComSquare
: bus(),
cartridge(),
wram(16384, WRam, "WRam"),
sram(this->cartridge.header.sramSize, SRam, "SRam"),
sram(0, SRam, "SRam"),
cpu(this->bus, cartridge.header),
ppu(renderer),
apu(renderer)
@@ -46,6 +46,7 @@ namespace ComSquare
void SNES::loadRom(const std::string &path)
{
this->cartridge.loadRom(path);
this->sram.setSize(this->cartridge.header.sramSize);
this->bus.mapComponents(*this);
this->cpu.RESB();
this->apu.reset();