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
This commit is contained in:
Asmodean.pcsx2 2014-02-02 20:40:28 +00:00
parent 5a8f01edf4
commit 644f0e61ba
1 changed files with 3 additions and 1 deletions

View File

@ -36,6 +36,7 @@ GSRenderer::GSRenderer()
m_interlace = theApp.GetConfig("interlace", 7); m_interlace = theApp.GetConfig("interlace", 7);
m_aspectratio = theApp.GetConfig("aspectratio", 1); m_aspectratio = theApp.GetConfig("aspectratio", 1);
m_shader = theApp.GetConfig("TVShader", 0);
m_filter = theApp.GetConfig("filter", 1); m_filter = theApp.GetConfig("filter", 1);
m_vsync = !!theApp.GetConfig("vsync", 0); m_vsync = !!theApp.GetConfig("vsync", 0);
m_aa1 = !!theApp.GetConfig("aa1", 0); m_aa1 = !!theApp.GetConfig("aa1", 0);
@ -560,7 +561,8 @@ void GSRenderer::KeyEvent(GSKeyEventData* e)
return; return;
case VK_F7: case VK_F7:
m_shader = (m_shader + post_shader_nb + step) % post_shader_nb; 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; return;
case VK_DELETE: case VK_DELETE:
m_aa1 = !m_aa1; m_aa1 = !m_aa1;