From 644f0e61ba5d91d7bd7b3f6346ee76e805b0dd76 Mon Sep 17 00:00:00 2001 From: "Asmodean.pcsx2" Date: Sun, 2 Feb 2014 20:40:28 +0000 Subject: [PATCH] GSdx: Store the user selected F7 shader to the ini, as TVShader. As before: use the hotkey(f7) to switch between them. It will now save the chosen scanline effect, instead of always defaulting to disabled, on load. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5874 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSdx/GSRenderer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/GSdx/GSRenderer.cpp b/plugins/GSdx/GSRenderer.cpp index 603f187507..39aa26daf2 100644 --- a/plugins/GSdx/GSRenderer.cpp +++ b/plugins/GSdx/GSRenderer.cpp @@ -36,6 +36,7 @@ GSRenderer::GSRenderer() m_interlace = theApp.GetConfig("interlace", 7); m_aspectratio = theApp.GetConfig("aspectratio", 1); + m_shader = theApp.GetConfig("TVShader", 0); m_filter = theApp.GetConfig("filter", 1); m_vsync = !!theApp.GetConfig("vsync", 0); m_aa1 = !!theApp.GetConfig("aa1", 0); @@ -560,7 +561,8 @@ void GSRenderer::KeyEvent(GSKeyEventData* e) return; case VK_F7: m_shader = (m_shader + post_shader_nb + step) % post_shader_nb; - printf("GSdx: Set shader %d.\n", (int)m_shader); + printf("GSdx: Set shader to: %d.\n", (int)m_shader); + theApp.SetConfig("TVShader", (int)m_shader); return; case VK_DELETE: m_aa1 = !m_aa1;