Merge pull request #13827 from jordan-woyak/fix-mplus-save

InputCommon/ControllerEmu: Fix saving of Wii Remote "MotionPlus Attached" setting.
This commit is contained in:
JMC47 2025-07-25 02:40:39 -04:00 committed by GitHub
commit 36627f55bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)
{
ControlGroup::SaveConfig(sec, base);
if (GetSelectionSetting().IsSimpleValue())
{
sec->Set(base + name, GetAttachmentList()[GetSelectedAttachment()]->GetName(), "None");