InputCommon/ControllerEmu: Fix saving of Wii Remote "Attach MotionPlus" setting.

This commit is contained in:
Jordan Woyak
2025-07-24 18:14:06 -05:00
parent 64d4c4020c
commit dcb289be8f

View File

@ -77,6 +77,8 @@ void Attachments::LoadConfig(Common::IniFile::Section* sec, const std::string& b
void Attachments::SaveConfig(Common::IniFile::Section* sec, const std::string& base) void Attachments::SaveConfig(Common::IniFile::Section* sec, const std::string& base)
{ {
ControlGroup::SaveConfig(sec, base);
if (GetSelectionSetting().IsSimpleValue()) if (GetSelectionSetting().IsSimpleValue())
{ {
sec->Set(base + name, GetAttachmentList()[GetSelectedAttachment()]->GetName(), "None"); sec->Set(base + name, GetAttachmentList()[GetSelectedAttachment()]->GetName(), "None");