citra-emu
/
citra-canary
Archived
1
0
Fork 0

citra_qt/config: actually save name of input profile

Fixes the issue where all input profiles had the name "default" after restarting Citra.
This commit is contained in:
fearlessTobi 2019-02-16 21:41:51 +01:00
parent de1128c60d
commit 70653c6a87
1 changed files with 1 additions and 0 deletions

View File

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