Fix controller settings not saving the Controller Pak plugin

This fixes issue #2019
This commit is contained in:
Kaja, Kyle 2021-07-09 13:01:36 -05:00 committed by zilmar
parent 8040e8a210
commit 7ecf8bc49a
1 changed files with 1 additions and 0 deletions

View File

@ -171,6 +171,7 @@ LRESULT CControllerSettings::OnApply()
Controller.DeadZone = (uint8_t)m_DeadZone.GetPos();
CONTROL & ControlInfo = g_InputPlugin->ControlInfo(m_ControllerNumber);
ControlInfo.Present = (m_PluggedIn.GetCheck() == BST_CHECKED) ? 1 : 0;
ControlInfo.Plugin = m_ControlInfo.Plugin;
return g_InputPlugin->SaveController(m_ControllerNumber) ? PSNRET_NOERROR : PSNRET_INVALID_NOCHANGEPAGE;
}