Refactor PPU and CPU classes by removing Clock dependency and updating constructors

This commit is contained in:
scawful
2025-01-18 00:12:12 -05:00
parent 70510ec0e9
commit 1c53ba24c5
7 changed files with 10 additions and 454 deletions

View File

@@ -35,11 +35,10 @@ class DungeonObjectRenderer : public SharedRom {
PseudoVram vram_;
emu::ClockImpl clock_;
emu::MemoryImpl memory_;
emu::CpuCallbacks cpu_callbacks_;
emu::Ppu ppu{memory_, clock_};
emu::Cpu cpu{memory_, clock_, cpu_callbacks_};
emu::Ppu ppu{memory_};
emu::Cpu cpu{memory_, cpu_callbacks_};
gfx::Bitmap bitmap_;
};