|
|
@ -72,12 +72,8 @@ void *COM_LoadLibrary( const char *dllname, int build_ordinals_table, qboolean d |
|
|
|
COM_ResetLibraryError(); |
|
|
|
COM_ResetLibraryError(); |
|
|
|
|
|
|
|
|
|
|
|
// platforms where gameinfo mechanism is impossible
|
|
|
|
// platforms where gameinfo mechanism is impossible
|
|
|
|
#if TARGET_OS_IPHONE |
|
|
|
#ifdef Platform_POSIX_LoadLibrary |
|
|
|
return IOS_LoadLibrary( dllname ); |
|
|
|
return Platform_POSIX_LoadLibrary( dllname ); |
|
|
|
#elif defined( __EMSCRIPTEN__ ) |
|
|
|
|
|
|
|
return EMSCRIPTEN_LoadLibrary( dllname ); |
|
|
|
|
|
|
|
#elif defined( __ANDROID__ ) |
|
|
|
|
|
|
|
return ANDROID_LoadLibrary( dllname ); |
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
// platforms where gameinfo mechanism is working goes here
|
|
|
|
// platforms where gameinfo mechanism is working goes here
|
|
|
@ -156,9 +152,13 @@ void COM_FreeLibrary( void *hInstance ) |
|
|
|
return Loader_FreeLibrary( hInstance ); |
|
|
|
return Loader_FreeLibrary( hInstance ); |
|
|
|
else |
|
|
|
else |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#if !defined __EMSCRIPTEN__ || defined EMSCRIPTEN_LIB_FS |
|
|
|
{ |
|
|
|
|
|
|
|
#ifdef Platform_POSIX_FreeLibrary |
|
|
|
|
|
|
|
Platform_POSIX_FreeLibrary( hInstance ); |
|
|
|
|
|
|
|
#else |
|
|
|
dlclose( hInstance ); |
|
|
|
dlclose( hInstance ); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void *COM_GetProcAddress( void *hInstance, const char *name ) |
|
|
|
void *COM_GetProcAddress( void *hInstance, const char *name ) |
|
|
@ -169,8 +169,8 @@ void *COM_GetProcAddress( void *hInstance, const char *name ) |
|
|
|
return Loader_GetProcAddress(hInstance, name); |
|
|
|
return Loader_GetProcAddress(hInstance, name); |
|
|
|
else |
|
|
|
else |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#if defined(__ANDROID__) |
|
|
|
#if Platform_POSIX_GetProcAddress |
|
|
|
return ANDROID_GetProcAddress( hInstance, name ); |
|
|
|
return Platform_POSIX_GetProcAddress( hInstance, name ); |
|
|
|
#else |
|
|
|
#else |
|
|
|
return dlsym( hInstance, name ); |
|
|
|
return dlsym( hInstance, name ); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|