#pragma once #include "types.h" class HostInterface; namespace CPU { class Core; } class Bus; class DMA; class GPU; class System { public: System(HostInterface* host_interface); ~System(); HostInterface* GetHostInterface() const { return m_host_interface; } bool Initialize(); void Reset(); void RunFrame(); private: HostInterface* m_host_interface; std::unique_ptr m_cpu; std::unique_ptr m_bus; std::unique_ptr m_dma; std::unique_ptr m_gpu; };