Qt: Update GPU settings when enhancements are changed

This commit is contained in:
Connor McLaughlin
2020-01-24 14:51:33 +10:00
parent f05f5aeb2b
commit abf48b6cc2
3 changed files with 22 additions and 3 deletions

View File

@ -78,6 +78,11 @@ bool System::RecreateGPU()
return true;
}
void System::UpdateGPUSettings()
{
m_gpu->UpdateSettings();
}
bool System::Boot(const char* filename)
{
// Load CD image up and detect region.

View File

@ -70,6 +70,9 @@ public:
/// Recreates the GPU component, saving/loading the state so it is preserved. Call when the GPU renderer changes.
bool RecreateGPU();
/// Updates GPU settings, without recreating the renderer.
void UpdateGPUSettings();
void RunFrame();
bool LoadEXE(const char* filename, std::vector<u8>& bios_image);