From 95fd453a993e0b3c2ce011e41757285a66db4d95 Mon Sep 17 00:00:00 2001 From: fgenesis Date: Thu, 14 Jul 2016 05:09:50 +0200 Subject: [PATCH] Save "Flip Input Buttons" setting --- Aquaria/UserSettings.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Aquaria/UserSettings.cpp b/Aquaria/UserSettings.cpp index 853ddbc..88f2a47 100644 --- a/Aquaria/UserSettings.cpp +++ b/Aquaria/UserSettings.cpp @@ -176,6 +176,12 @@ void UserSettings::save() } xml_control->InsertEndChild(xml_targeting); + XMLElement *xml_flip = doc.NewElement("FlipInputButtons"); + { + xml_flip->SetAttribute("on", control.flipInputButtons); + } + xml_control->InsertEndChild(xml_flip); + XMLElement *xml_joyAxes = doc.NewElement("JoyAxes"); { xml_joyAxes->SetAttribute("s1ax", control.s1ax); @@ -429,10 +435,9 @@ void UserSettings::load(bool doApply, const std::string &overrideFile) if (xml_control) { readInt(xml_control, "JoystickEnabled", "on", &control.joystickEnabled); - readInt(xml_control, "AutoAim", "on", &control.autoAim); - readInt(xml_control, "Targeting", "on", &control.targeting); + readInt(xml_control, "FlipInputButtons", "on", &control.flipInputButtons); XMLElement *xml_joyAxes = xml_control->FirstChildElement("JoyAxes"); if (xml_joyAxes)