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() void PostProcessingSettingsWidget::commitSettingsUpdate()
{ {
if (m_dialog->isPerGameSettings()) if (m_dialog->isPerGameSettings())
{
m_dialog->getSettingsInterface()->Save(); m_dialog->getSettingsInterface()->Save();
g_emu_thread->reloadGameSettings(false);
}
else else
{
Host::CommitBaseSettingChanges(); Host::CommitBaseSettingChanges();
}
g_emu_thread->updatePostProcessingSettings(); g_emu_thread->updatePostProcessingSettings();
} }

View file

@ -106,14 +106,11 @@ void SettingsWindow::addPages()
QStringLiteral("sparkle-fill"), QStringLiteral("sparkle-fill"),
tr("<strong>Enhancement Settings</strong><hr>These options control enhancements which can improve visuals compared " 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.")); "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"),
addWidget( QStringLiteral("sun-fill"),
m_post_processing_settings = new PostProcessingSettingsWidget(this, m_ui.settingsContainer), tr("<strong>Post-Processing Settings</strong><hr>Post processing allows you to alter the appearance of the image "
tr("Post-Processing"), QStringLiteral("sun-fill"), "displayed on the screen with various filters. Shaders will be executed in sequence."));
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( addWidget(
m_audio_settings = new AudioSettingsWidget(this, m_ui.settingsContainer), tr("Audio"), m_audio_settings = new AudioSettingsWidget(this, m_ui.settingsContainer), tr("Audio"),
QStringLiteral("volume-up-line"), QStringLiteral("volume-up-line"),