From 8bc0ffaefbd260847d7f20204260d7c6b3820bba Mon Sep 17 00:00:00 2001 From: mattmenke Date: Fri, 25 Sep 2009 11:22:46 +0000 Subject: [PATCH] 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 --- pcsx2/PluginManager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcsx2/PluginManager.cpp b/pcsx2/PluginManager.cpp index 7a68f9018b..92accb716d 100644 --- a/pcsx2/PluginManager.cpp +++ b/pcsx2/PluginManager.cpp @@ -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." );