Merge branch 'master' of github.com:AnonymusRaccoon/ComSquare into PPU

This commit is contained in:
Clément Le Bihan
2021-06-23 22:25:32 +02:00
15 changed files with 930 additions and 442 deletions
+8
View File
@@ -25,10 +25,18 @@ namespace ComSquare
apu(new APU::APU(renderer))
{
this->bus->mapComponents(*this);
if (this->cartridge->getType() == Cartridge::Audio)
this->apu->loadFromSPC(this->cartridge);
}
void SNES::update()
{
if (this->cartridge->getType() == Cartridge::Audio)
{
this->apu->update(0x01);
return;
}
unsigned cycleCount = this->cpu->update();
this->ppu->update(cycleCount);
this->apu->update(cycleCount);