(xinput_joypad.c) Go through dylib_load

This commit is contained in:
twinaphex 2015-04-08 20:12:50 +02:00
parent fab39da46a
commit 88c300cb58

View File

@ -165,15 +165,15 @@ static bool xinput_joypad_init(void)
* wrapper DLL (such as x360ce); support these by checking
* the working directory first.
*
* No need to check for existance as we will be checking LoadLibrary's
* No need to check for existance as we will be checking dylib_load's
* success anyway.
*/
/* Using dylib_* complicates building joyconfig. */
g_xinput_dll = LoadLibrary("xinput1_4.dll");
g_xinput_dll = (HINSTANCE)dylib_load("xinput1_4.dll");
if (!g_xinput_dll)
{
g_xinput_dll = LoadLibrary("xinput1_3.dll");
g_xinput_dll = (HINSTANCE)dylib_load("xinput1_3.dll");
version = "1.3";
}