Inject SPC700 to APU, add APU and PPU observers

This commit is contained in:
scawful
2023-08-24 22:54:52 -04:00
parent 1cc0c45e79
commit 453a2575f4
6 changed files with 100 additions and 42 deletions

View File

@@ -156,6 +156,10 @@ ROMInfo SNES::ReadRomHeader(uint32_t offset) {
}
void SNES::Init(ROM& rom) {
// Setup observers for the memory space
memory_.AddObserver(&apu);
memory_.AddObserver(&ppu);
// Load the ROM into memory and set up the memory mapping
memory_.Initialize(rom.vector());