diff --git a/src/common/config.cpp b/src/common/config.cpp index d477451e1..21be82fe7 100644 --- a/src/common/config.cpp +++ b/src/common/config.cpp @@ -563,20 +563,9 @@ void load(const std::filesystem::path& path) { } if (data.contains("General")) { - - toml::value& table = toml::find(data, "General"); - auto findkey = table.as_table().find("isPS4Pro"); - if (findkey != table.as_table().end()) { - table.as_table().erase(findkey); - data["General"]["isPS4ProEnabled"] = false; - std::ofstream file(path, std::ios::binary); - file << data; - file.close(); - } - const toml::value& general = data.at("General"); - isNeo = toml::find_or(general, "isPS4ProEnabled", false); + isNeo = toml::find_or(general, "isPS4Pro", false); isFullscreen = toml::find_or(general, "Fullscreen", false); playBGM = toml::find_or(general, "playBGM", false); isTrophyPopupDisabled = toml::find_or(general, "isTrophyPopupDisabled", false); @@ -702,7 +691,7 @@ void save(const std::filesystem::path& path) { fmt::print("Saving new configuration file {}\n", fmt::UTF(path.u8string())); } - data["General"]["isPS4ProEnabled"] = isNeo; + data["General"]["isPS4Pro"] = isNeo; data["General"]["Fullscreen"] = isFullscreen; data["General"]["isTrophyPopupDisabled"] = isTrophyPopupDisabled; data["General"]["playBGM"] = playBGM; diff --git a/src/qt_gui/settings_dialog.cpp b/src/qt_gui/settings_dialog.cpp index a5219c3e1..b75095990 100644 --- a/src/qt_gui/settings_dialog.cpp +++ b/src/qt_gui/settings_dialog.cpp @@ -291,8 +291,7 @@ void SettingsDialog::LoadValuesFromConfig() { ui->separateUpdatesCheckBox->setChecked( toml::find_or(data, "General", "separateUpdateEnabled", false)); ui->showSplashCheckBox->setChecked(toml::find_or(data, "General", "showSplash", false)); - // ui->ps4proCheckBox->setChecked(toml::find_or(data, "General", "isPS4ProEnabled", - // false)); + // ui->ps4proCheckBox->setChecked(toml::find_or(data, "General", "isPS4Pro", false)); ui->logTypeComboBox->setCurrentText( QString::fromStdString(toml::find_or(data, "General", "logType", "async"))); ui->logFilterLineEdit->setText(