Merge pull request #2077 from kkaja123/bugfix/controller-settings-plugin

Fix controller settings not saving the Controller Pak plugin
This commit is contained in:
zilmar 2021-07-11 15:50:35 +09:30 committed by GitHub
commit a8d86eaefb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(); Controller.DeadZone = (uint8_t)m_DeadZone.GetPos();
CONTROL & ControlInfo = g_InputPlugin->ControlInfo(m_ControllerNumber); CONTROL & ControlInfo = g_InputPlugin->ControlInfo(m_ControllerNumber);
ControlInfo.Present = (m_PluggedIn.GetCheck() == BST_CHECKED) ? 1 : 0; 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; return g_InputPlugin->SaveController(m_ControllerNumber) ? PSNRET_NOERROR : PSNRET_INVALID_NOCHANGEPAGE;
} }