Fix when the toggling message appears

Make the toggling message appear only when F9 is actually pressed.
This commit is contained in:
Jonathan Li 2015-06-21 12:24:58 +01:00
parent 98a7058794
commit bfa46b7f54
1 changed files with 4 additions and 1 deletions

View File

@ -179,6 +179,8 @@ static void dummyIrqCallback()
void SysMtgsThread::OpenPlugin() void SysMtgsThread::OpenPlugin()
{ {
static bool stored_renderswitch = false;
if( m_PluginOpened ) return; if( m_PluginOpened ) return;
memcpy( RingBuffer.Regs, PS2MEM_GS, sizeof(PS2MEM_GS) ); memcpy( RingBuffer.Regs, PS2MEM_GS, sizeof(PS2MEM_GS) );
@ -192,8 +194,9 @@ void SysMtgsThread::OpenPlugin()
else else
result = GSopen( (void*)pDsp, "PCSX2", renderswitch ? 2 : 1 ); result = GSopen( (void*)pDsp, "PCSX2", renderswitch ? 2 : 1 );
if( renderswitch ) if( stored_renderswitch != renderswitch )
{ {
stored_renderswitch = renderswitch;
Console.Indent(2).WriteLn( "Toggling GSdx Hardware/Software renderer" ); Console.Indent(2).WriteLn( "Toggling GSdx Hardware/Software renderer" );
} }