UI: Beginning of customizable settings, debug menu
This commit is contained in:
parent
15f75a89ac
commit
8362b8e43b
13 changed files with 156 additions and 56 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue