diff --git a/Source/Plugins/Plugin_nJoy_SDL/Src/nJoy.cpp b/Source/Plugins/Plugin_nJoy_SDL/Src/nJoy.cpp index 43e1724f0d..6b8c3991a0 100644 --- a/Source/Plugins/Plugin_nJoy_SDL/Src/nJoy.cpp +++ b/Source/Plugins/Plugin_nJoy_SDL/Src/nJoy.cpp @@ -257,10 +257,12 @@ void Initialize(void *init) #endif // Populate joyinfo for all attached devices if the configuration window is not already open - if(!m_frame) Search_Devices(joyinfo, NumPads, NumGoodPads); - - // Check if a DirectInput error occured - if(ReloadDLL()) g_PADInitialize->padNumber = -1; + if(!m_frame) + { + Search_Devices(joyinfo, NumPads, NumGoodPads); + // Check if a DirectInput error occured + if(ReloadDLL()) g_PADInitialize->padNumber = -1; + } } bool Search_Devices(std::vector &_joyinfo, int &_NumPads, int &_NumGoodPads)