diff --git a/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp b/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp index 10c5817eb4..10b0f6e370 100644 --- a/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp +++ b/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp @@ -220,6 +220,18 @@ GraphicsSettingsWidget::GraphicsSettingsWidget(SettingsWindow* dialog, QWidget* onTextureDumpChanged(); onTextureReplacementChanged(); + if (m_dialog->isPerGameSettings()) + { + m_ui.textureReplacementLayout->removeWidget(m_ui.texturesDirectoryBox); + m_ui.texturesDirectoryBox->deleteLater(); + m_ui.texturesDirectoryBox = nullptr; + m_ui.texturesDirectory = nullptr; + m_ui.texturesBrowse = nullptr; + m_ui.texturesOpen = nullptr; + m_ui.texturesReset = nullptr; + m_ui.textureDescriptionText = nullptr; + } + ////////////////////////////////////////////////////////////////////////// // Advanced Settings ////////////////////////////////////////////////////////////////////////// diff --git a/pcsx2-qt/Settings/GraphicsSettingsWidget.ui b/pcsx2-qt/Settings/GraphicsSettingsWidget.ui index 2f173baed1..a721b31e4a 100644 --- a/pcsx2-qt/Settings/GraphicsSettingsWidget.ui +++ b/pcsx2-qt/Settings/GraphicsSettingsWidget.ui @@ -1215,17 +1215,17 @@ - + Texture Replacement - + - + Options - + @@ -1272,11 +1272,11 @@ - + Search Directory - + @@ -1302,7 +1302,7 @@ - + PCSX2 will dump and load texture replacements from this directory. diff --git a/pcsx2/ImGui/FullscreenUI.cpp b/pcsx2/ImGui/FullscreenUI.cpp index 94e0c35d9d..7373b75042 100644 --- a/pcsx2/ImGui/FullscreenUI.cpp +++ b/pcsx2/ImGui/FullscreenUI.cpp @@ -3845,7 +3845,11 @@ void FullscreenUI::DrawGraphicsSettingsPage(SettingsInterface* bsi, bool show_ad DrawToggleSetting(bsi, FSUI_CSTR("Precache Replacements"), FSUI_CSTR("Preloads all replacement textures to memory. Not necessary with asynchronous loading."), "EmuCore/GS", "PrecacheTextureReplacements", false, replacement_active); - DrawFolderSetting(bsi, FSUI_CSTR("Replacements Directory"), FSUI_CSTR("Folders"), "Textures", EmuFolders::Textures); + + if (!IsEditingGameSettings(bsi)) + { + DrawFolderSetting(bsi, FSUI_CSTR("Replacements Directory"), FSUI_CSTR("Folders"), "Textures", EmuFolders::Textures); + } MenuHeading(FSUI_CSTR("Texture Dumping")); DrawToggleSetting(bsi, FSUI_CSTR("Dump Textures"), FSUI_CSTR("Dumps replaceable textures to disk. Will reduce performance."),