aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/main_window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuzu/main_window.cpp')
-rw-r--r--src/yuzu/main_window.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/yuzu/main_window.cpp b/src/yuzu/main_window.cpp
index 9a167e18f7..95b91a4f38 100644
--- a/src/yuzu/main_window.cpp
+++ b/src/yuzu/main_window.cpp
@@ -13,6 +13,9 @@
#include "common/settings_enums.h"
#include "frontend_common/settings_generator.h"
#include "render/performance_overlay.h"
+#ifdef HAS_RESHADE
+#include "configuration/configure_post_processing.h"
+#endif
#include "updater/update_dialog.h"
#include "common/fs/ryujinx_compat.h"
@@ -1517,6 +1520,11 @@ void MainWindow::ConnectMenuEvents() {
connect_menu(ui->action_Show_Filter_Bar, &MainWindow::OnToggleFilterBar);
connect_menu(ui->action_Show_Status_Bar, &MainWindow::OnToggleStatusBar);
connect_menu(ui->action_Show_Performance_Overlay, &MainWindow::OnTogglePerfOverlay);
+#ifdef HAS_RESHADE
+ connect_menu(ui->action_Post_Processing_Shaders, &MainWindow::OnPostProcessingShaders);
+#else
+ ui->action_Post_Processing_Shaders->setVisible(false);
+#endif
connect_menu(ui->action_Reset_Window_Size_720, &MainWindow::ResetWindowSize720);
connect_menu(ui->action_Reset_Window_Size_900, &MainWindow::ResetWindowSize900);
@@ -3893,6 +3901,22 @@ void MainWindow::OnTogglePerfOverlay() {
perf_overlay->setVisible(ui->action_Show_Performance_Overlay->isChecked());
}
+#ifdef HAS_RESHADE
+void MainWindow::OnPostProcessingShaders() {
+ if (post_processing_dialog == nullptr) {
+ post_processing_dialog = new ConfigurePostProcessing(this);
+ connect(post_processing_dialog, &QDialog::finished, post_processing_dialog, [this]() {
+ post_processing_dialog->deleteLater();
+ post_processing_dialog = nullptr;
+ });
+ }
+
+ post_processing_dialog->show();
+ post_processing_dialog->raise();
+ post_processing_dialog->activateWindow();
+}
+#endif
+
void MainWindow::OnGameListRefresh() {
// Resets metadata cache and reloads
QtCommon::Game::ResetMetadata(false);