mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-22 12:54:13 +00:00
engine: android: quick hack to load libraries on aarch64 until we don't symlinking lib folder
This commit is contained in:
parent
e0b8c338a8
commit
d3dd671759
@ -40,9 +40,19 @@ void *ANDROID_LoadLibrary( const char *dllname )
|
||||
}
|
||||
|
||||
// HACKHACK: keep old behaviour for compability
|
||||
pHandle = dlopen( dllname, RTLD_LAZY );
|
||||
if( pHandle )
|
||||
return pHandle;
|
||||
if( Q_strstr( dllname, "." OS_LIB_EXT ))
|
||||
{
|
||||
pHandle = dlopen( dllname, RTLD_LAZY );
|
||||
if( pHandle )
|
||||
return pHandle;
|
||||
}
|
||||
else
|
||||
{
|
||||
Q_snprintf( path, MAX_SYSPATH, "lib%s"POSTFIX"."OS_LIB_EXT, dllname );
|
||||
pHandle = dlopen( path, RTLD_LAZY );
|
||||
if( pHandle )
|
||||
return pHandle;
|
||||
}
|
||||
|
||||
COM_PushLibraryError( dlerror() );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user