mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15: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()
|
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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"),
|
||||||
|
|
Loading…
Reference in a new issue