UI: Beginning of customizable settings, debug menu
This commit is contained in:
@ -15,7 +15,8 @@
|
||||
#include <cstdio>
|
||||
Log_SetChannel(System);
|
||||
|
||||
System::System(HostInterface* host_interface) : m_host_interface(host_interface)
|
||||
System::System(HostInterface* host_interface, const Settings& settings)
|
||||
: m_host_interface(host_interface), m_settings(settings)
|
||||
{
|
||||
m_cpu = std::make_unique<CPU::Core>();
|
||||
m_bus = std::make_unique<Bus>();
|
||||
@ -32,6 +33,11 @@ System::System(HostInterface* host_interface) : m_host_interface(host_interface)
|
||||
|
||||
System::~System() = default;
|
||||
|
||||
void System::UpdateSettings()
|
||||
{
|
||||
m_gpu->UpdateSettings();
|
||||
}
|
||||
|
||||
bool System::Initialize()
|
||||
{
|
||||
if (!m_cpu->Initialize(m_bus.get()))
|
||||
@ -145,11 +151,6 @@ void System::RunFrame()
|
||||
}
|
||||
}
|
||||
|
||||
void System::RenderUI()
|
||||
{
|
||||
m_gpu->RenderUI();
|
||||
}
|
||||
|
||||
bool System::LoadEXE(const char* filename)
|
||||
{
|
||||
#pragma pack(push, 1)
|
||||
|
||||
Reference in New Issue
Block a user