mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 22:05:38 +00:00
Qt: Allow post-processing to be set per-game
This commit is contained in:
parent
9d06fde276
commit
b8d4669997
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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"),
|
||||
|
|
Loading…
Reference in a new issue