HostInterface: Fix controller not updating when switched and system running

This commit is contained in:
Connor McLaughlin 2020-03-22 12:53:56 +10:00
parent 46f921fb95
commit 12ddeb675c

View file

@ -964,11 +964,20 @@ void HostInterface::UpdateSettings(const std::function<void()>& apply_callback)
m_system->GetCDROM()->SetUseReadThread(m_settings.cdrom_read_thread);
}
bool controllers_updated = false;
for (u32 i = 0; i < NUM_CONTROLLER_AND_CARD_PORTS; i++)
{
if (m_settings.controller_types[i] != old_controller_types[i])
{
if (!controllers_updated)
{
m_system->UpdateControllers();
controllers_updated = true;
}
OnControllerTypeChanged(i);
}
}
if (m_display && m_settings.display_linear_filtering != old_display_linear_filtering)
m_display->SetDisplayLinearFiltering(m_settings.display_linear_filtering);