From d470f958a0792ff44e5e16eae95f8fc006ff2a02 Mon Sep 17 00:00:00 2001 From: KamFretoZ <14798312+kamfretoz@users.noreply.github.com> Date: Mon, 13 May 2024 21:45:56 +0700 Subject: [PATCH] FSUI: Automatically hide advanced graphics settings depending on global advanced settings visibility --- pcsx2/ImGui/FullscreenUI.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pcsx2/ImGui/FullscreenUI.cpp b/pcsx2/ImGui/FullscreenUI.cpp index a2d29a1a3e0b13..359863e2b1dfc0 100644 --- a/pcsx2/ImGui/FullscreenUI.cpp +++ b/pcsx2/ImGui/FullscreenUI.cpp @@ -3912,6 +3912,10 @@ void FullscreenUI::DrawGraphicsSettingsPage() static constexpr const char* s_gsdump_compression[] = {FSUI_NSTR("Uncompressed"), FSUI_NSTR("LZMA (xz)"), FSUI_NSTR("Zstandard (zst)")}; + const bool show_advanced_settings = ShouldShowAdvancedSettings(bsi); + + if (show_advanced_settings) + { MenuHeading(FSUI_CSTR("Advanced")); DrawToggleSetting(bsi, FSUI_CSTR("Skip Presenting Duplicate Frames"), FSUI_CSTR("Skips displaying frames that don't change in 25/30fps games. Can improve speed, but increase input lag/make frame pacing " @@ -3941,6 +3945,7 @@ void FullscreenUI::DrawGraphicsSettingsPage() "EmuCore/GS", "DisableShaderCache", false); DrawToggleSetting(bsi, FSUI_CSTR("Disable Vertex Shader Expand"), FSUI_CSTR("Falls back to the CPU for expanding sprites/lines."), "EmuCore/GS", "DisableVertexShaderExpand", false); + } EndMenuButtons(); }