Merge pull request #4648 from FearlessTobi/fix-inputprofile-names

citra_qt/config: actually save name of input profile
This commit is contained in:
Weiyi Wang 2019-02-17 15:43:45 -05:00 committed by GitHub
commit 9021353035
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -408,6 +408,7 @@ void Config::SaveValues() {
for (std::size_t p = 0; p < Settings::values.input_profiles.size(); ++p) {
qt_config->setArrayIndex(static_cast<int>(p));
const auto& profile = Settings::values.input_profiles[p];
WriteSetting("name", QString::fromStdString(profile.name), "default");
for (int i = 0; i < Settings::NativeButton::NumButtons; ++i) {
std::string default_param = InputCommon::GenerateKeyboardParam(default_buttons[i]);
WriteSetting(QString::fromStdString(Settings::NativeButton::mapping[i]),