Core / DolphinQt / InputCommon: reduce the number disk writes when using DynamicInputTextures

This commit is contained in:
iwubcode
2025-01-25 21:49:32 -06:00
parent 18979129f3
commit d03f9032c1
15 changed files with 102 additions and 42 deletions

View File

@ -322,6 +322,7 @@ void MappingWindow::OnLoadProfilePressed()
m_controller->LoadConfig(ini.GetOrCreateSection("Profile"));
m_controller->UpdateReferences(g_controller_interface);
m_controller->GetConfig()->GenerateControllerTextures();
const auto lock = GetController()->GetStateLock();
emit ConfigChanged();
@ -561,6 +562,7 @@ void MappingWindow::OnDefaultFieldsPressed()
{
m_controller->LoadDefaults(g_controller_interface);
m_controller->UpdateReferences(g_controller_interface);
m_controller->GetConfig()->GenerateControllerTextures();
const auto lock = GetController()->GetStateLock();
emit ConfigChanged();
@ -578,6 +580,7 @@ void MappingWindow::OnClearFieldsPressed()
m_controller->SetDefaultDevice(default_device);
m_controller->UpdateReferences(g_controller_interface);
m_controller->GetConfig()->GenerateControllerTextures();
const auto lock = GetController()->GetStateLock();
emit ConfigChanged();