Qt: Allow post-processing to be set per-game

This commit is contained in:
Stenzek 2023-11-24 14:00:52 +10:00
parent 9d06fde276
commit b8d4669997
No known key found for this signature in database
2 changed files with 10 additions and 8 deletions

View file

@ -40,9 +40,14 @@ SettingsInterface& PostProcessingSettingsWidget::getSettingsInterfaceToUpdate()
void PostProcessingSettingsWidget::commitSettingsUpdate()
{
if (m_dialog->isPerGameSettings())
{
m_dialog->getSettingsInterface()->Save();
g_emu_thread->reloadGameSettings(false);
}
else
{
Host::CommitBaseSettingChanges();
}
g_emu_thread->updatePostProcessingSettings();
}

View file

@ -106,14 +106,11 @@ void SettingsWindow::addPages()
QStringLiteral("sparkle-fill"),
tr("<strong>Enhancement Settings</strong><hr>These options control enhancements which can improve visuals compared "
"to the original console. Mouse over each option for additional information."));
if (!isPerGameSettings())
{
addWidget(
m_post_processing_settings = new PostProcessingSettingsWidget(this, m_ui.settingsContainer),
tr("Post-Processing"), QStringLiteral("sun-fill"),
tr("<strong>Post-Processing Settings</strong><hr>Post processing allows you to alter the appearance of the image "
"displayed on the screen with various filters. Shaders will be executed in sequence."));
}
addWidget(
m_post_processing_settings = new PostProcessingSettingsWidget(this, m_ui.settingsContainer), tr("Post-Processing"),
QStringLiteral("sun-fill"),
tr("<strong>Post-Processing Settings</strong><hr>Post processing allows you to alter the appearance of the image "
"displayed on the screen with various filters. Shaders will be executed in sequence."));
addWidget(
m_audio_settings = new AudioSettingsWidget(this, m_ui.settingsContainer), tr("Audio"),
QStringLiteral("volume-up-line"),