Workaround for bug in plugin loader with GS plugins that don't support GSopen2().

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1916 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
mattmenke 2009-09-25 11:22:46 +00:00
parent ff60b3b882
commit 8bc0ffaefb
1 changed files with 4 additions and 1 deletions

View File

@ -915,9 +915,12 @@ void PluginManager::Open()
const PluginInfo* pi = tbl_PluginInfo; do {
Open( pi->id );
// If GS doesn't support GSopen2, need to wait until call to GSopen
// returns to populate pDsp.
if (pi->id == PluginId_GS && !GSopen2) mtgsThread.WaitForOpen();
} while( ++pi, pi->shortname != NULL );
mtgsThread.WaitForOpen();
if (GSopen2) mtgsThread.WaitForOpen();
mtgsThread.PollStatus();
Console::Status( "Plugins opened successfully." );