mirror of
https://github.com/libretro/RetroArch
synced 2025-02-11 15:40:28 +00:00
(xinput_joypad.c) Go through dylib_load
This commit is contained in:
parent
fab39da46a
commit
88c300cb58
@ -165,15 +165,15 @@ static bool xinput_joypad_init(void)
|
|||||||
* wrapper DLL (such as x360ce); support these by checking
|
* wrapper DLL (such as x360ce); support these by checking
|
||||||
* the working directory first.
|
* 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.
|
* success anyway.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Using dylib_* complicates building joyconfig. */
|
/* 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)
|
if (!g_xinput_dll)
|
||||||
{
|
{
|
||||||
g_xinput_dll = LoadLibrary("xinput1_3.dll");
|
g_xinput_dll = (HINSTANCE)dylib_load("xinput1_3.dll");
|
||||||
version = "1.3";
|
version = "1.3";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user