engine: disable Android-specific library loader under Termux

This commit is contained in:
Alibek Omarov
2025-04-24 21:46:43 +03:00
parent 60fa855d47
commit 5aca143eba
2 changed files with 4 additions and 1 deletions

View File

@@ -158,7 +158,7 @@ Default build-depended cvar and constant values
#define DEFAULT_M_IGNORE "1"
#endif // !XASH_MOBILE_PLATFORM && !XASH_NSWITCH
#if XASH_ANDROID || XASH_IOS || XASH_EMSCRIPTEN
#if (XASH_ANDROID && !XASH_TERMUX) || XASH_IOS || XASH_EMSCRIPTEN
// this means that libraries are provided with engine, but not in game data
// You need add library loading code to library.c when adding new platform
#define XASH_INTERNAL_GAMELIBS

View File

@@ -17,7 +17,10 @@ GNU General Public License for more details.
#ifndef ANDROID_LIB_H
#define ANDROID_LIB_H
#if !XASH_TERMUX
#define Platform_POSIX_LoadLibrary( x ) ANDROID_LoadLibrary(( x ))
#endif // !XASH_TERMUX
#define Platform_POSIX_GetProcAddress( x, y ) ANDROID_GetProcAddress(( x ), ( y ))
void *ANDROID_LoadLibrary( const char *dllname );