mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-15 11:25:13 +00:00
Remove PS4 pro mode from GUI, can still be edited in from config file (#1871)
This commit is contained in:
parent
63d2d1ebe8
commit
8447d6ea1c
|
@ -199,7 +199,6 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices,
|
||||||
ui->fullscreenCheckBox->installEventFilter(this);
|
ui->fullscreenCheckBox->installEventFilter(this);
|
||||||
ui->separateUpdatesCheckBox->installEventFilter(this);
|
ui->separateUpdatesCheckBox->installEventFilter(this);
|
||||||
ui->showSplashCheckBox->installEventFilter(this);
|
ui->showSplashCheckBox->installEventFilter(this);
|
||||||
ui->ps4proCheckBox->installEventFilter(this);
|
|
||||||
ui->discordRPCCheckbox->installEventFilter(this);
|
ui->discordRPCCheckbox->installEventFilter(this);
|
||||||
ui->userName->installEventFilter(this);
|
ui->userName->installEventFilter(this);
|
||||||
ui->logTypeGroupBox->installEventFilter(this);
|
ui->logTypeGroupBox->installEventFilter(this);
|
||||||
|
@ -291,7 +290,6 @@ void SettingsDialog::LoadValuesFromConfig() {
|
||||||
ui->separateUpdatesCheckBox->setChecked(
|
ui->separateUpdatesCheckBox->setChecked(
|
||||||
toml::find_or<bool>(data, "General", "separateUpdateEnabled", false));
|
toml::find_or<bool>(data, "General", "separateUpdateEnabled", false));
|
||||||
ui->showSplashCheckBox->setChecked(toml::find_or<bool>(data, "General", "showSplash", false));
|
ui->showSplashCheckBox->setChecked(toml::find_or<bool>(data, "General", "showSplash", false));
|
||||||
ui->ps4proCheckBox->setChecked(toml::find_or<bool>(data, "General", "isPS4Pro", false));
|
|
||||||
ui->logTypeComboBox->setCurrentText(
|
ui->logTypeComboBox->setCurrentText(
|
||||||
QString::fromStdString(toml::find_or<std::string>(data, "General", "logType", "async")));
|
QString::fromStdString(toml::find_or<std::string>(data, "General", "logType", "async")));
|
||||||
ui->logFilterLineEdit->setText(
|
ui->logFilterLineEdit->setText(
|
||||||
|
@ -408,8 +406,6 @@ void SettingsDialog::updateNoteTextEdit(const QString& elementName) {
|
||||||
text = tr("separateUpdatesCheckBox");
|
text = tr("separateUpdatesCheckBox");
|
||||||
} else if (elementName == "showSplashCheckBox") {
|
} else if (elementName == "showSplashCheckBox") {
|
||||||
text = tr("showSplashCheckBox");
|
text = tr("showSplashCheckBox");
|
||||||
} else if (elementName == "ps4proCheckBox") {
|
|
||||||
text = tr("ps4proCheckBox");
|
|
||||||
} else if (elementName == "discordRPCCheckbox") {
|
} else if (elementName == "discordRPCCheckbox") {
|
||||||
text = tr("discordRPCCheckbox");
|
text = tr("discordRPCCheckbox");
|
||||||
} else if (elementName == "userName") {
|
} else if (elementName == "userName") {
|
||||||
|
@ -520,11 +516,9 @@ void SettingsDialog::UpdateSettings() {
|
||||||
|
|
||||||
const QVector<std::string> TouchPadIndex = {"left", "center", "right", "none"};
|
const QVector<std::string> TouchPadIndex = {"left", "center", "right", "none"};
|
||||||
Config::setBackButtonBehavior(TouchPadIndex[ui->backButtonBehaviorComboBox->currentIndex()]);
|
Config::setBackButtonBehavior(TouchPadIndex[ui->backButtonBehaviorComboBox->currentIndex()]);
|
||||||
Config::setNeoMode(ui->ps4proCheckBox->isChecked());
|
|
||||||
Config::setFullscreenMode(ui->fullscreenCheckBox->isChecked());
|
Config::setFullscreenMode(ui->fullscreenCheckBox->isChecked());
|
||||||
Config::setisTrophyPopupDisabled(ui->disableTrophycheckBox->isChecked());
|
Config::setisTrophyPopupDisabled(ui->disableTrophycheckBox->isChecked());
|
||||||
Config::setPlayBGM(ui->playBGMCheckBox->isChecked());
|
Config::setPlayBGM(ui->playBGMCheckBox->isChecked());
|
||||||
Config::setNeoMode(ui->ps4proCheckBox->isChecked());
|
|
||||||
Config::setLogType(ui->logTypeComboBox->currentText().toStdString());
|
Config::setLogType(ui->logTypeComboBox->currentText().toStdString());
|
||||||
Config::setLogFilter(ui->logFilterLineEdit->text().toStdString());
|
Config::setLogFilter(ui->logFilterLineEdit->text().toStdString());
|
||||||
Config::setUserName(ui->userNameLineEdit->text().toStdString());
|
Config::setUserName(ui->userNameLineEdit->text().toStdString());
|
||||||
|
@ -590,4 +584,4 @@ void SettingsDialog::ResetInstallFolders() {
|
||||||
}
|
}
|
||||||
Config::setGameInstallDirs(settings_install_dirs_config);
|
Config::setGameInstallDirs(settings_install_dirs_config);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -228,13 +228,6 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="ps4proCheckBox">
|
|
||||||
<property name="text">
|
|
||||||
<string>Is PS4 Pro</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="discordRPCCheckbox">
|
<widget class="QCheckBox" name="discordRPCCheckbox">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
|
Loading…
Reference in a new issue