PAD: fix regression on MTGS scheduler close

This commit is contained in:
Gauvain 'GovanifY' Roussel-Tarbouriech 2020-12-15 10:03:18 +01:00 committed by lightningterror
parent 80e379820d
commit d8884e3a2f
1 changed files with 11 additions and 0 deletions

View File

@ -22,6 +22,11 @@
#include "GS.h"
#include "Gif.h"
#ifdef _WIN32
#include "PAD/Windows/PAD.h"
#else
#include "PAD/Linux/PAD.h"
#endif
#include "Utilities/pxStreams.h"
@ -876,6 +881,12 @@ void SysCorePlugins::ClosePlugin_GS()
{
if( GetMTGS().IsSelf() )
_generalclose( PluginId_GS );
else
{
if (!GSopen2)
PADclose();
GetMTGS().Suspend();
}
}
void SysCorePlugins::ClosePlugin_Mcd()