mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00:00
dlopen libandroid from lib64 instead
This commit is contained in:
parent
8f55e77afe
commit
304a647248
@ -466,10 +466,15 @@ static bool android_input_init_handle(void)
|
|||||||
{
|
{
|
||||||
if (libandroid_handle != NULL) /* already initialized */
|
if (libandroid_handle != NULL) /* already initialized */
|
||||||
return true;
|
return true;
|
||||||
|
#ifdef ANDROID_AARCH64
|
||||||
|
if ((libandroid_handle = dlopen("/system/lib64/libandroid.so",
|
||||||
|
RTLD_LOCAL | RTLD_LAZY)) == 0)
|
||||||
|
return false;
|
||||||
|
#else
|
||||||
if ((libandroid_handle = dlopen("/system/lib/libandroid.so",
|
if ((libandroid_handle = dlopen("/system/lib/libandroid.so",
|
||||||
RTLD_LOCAL | RTLD_LAZY)) == 0)
|
RTLD_LOCAL | RTLD_LAZY)) == 0)
|
||||||
return false;
|
return false;
|
||||||
|
#endif
|
||||||
|
|
||||||
if ((p_AMotionEvent_getAxisValue = dlsym(RTLD_DEFAULT,
|
if ((p_AMotionEvent_getAxisValue = dlsym(RTLD_DEFAULT,
|
||||||
"AMotionEvent_getAxisValue")))
|
"AMotionEvent_getAxisValue")))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user