Fixing the rom reset and adding an open rom button

This commit is contained in:
Zoe Roux
2021-07-06 20:46:36 +02:00
parent c38dfefd73
commit 0d0dbc9b02
7 changed files with 36 additions and 13 deletions
+2
View File
@@ -47,6 +47,8 @@ namespace ComSquare
{
this->cartridge.loadRom(path);
this->bus.mapComponents(*this);
this->cpu.RESB();
this->apu.reset();
if (this->cartridge.getType() == Cartridge::Audio)
this->apu.loadFromSPC(this->cartridge);
}