From d182c88abcc67ee0ea2619a046f1efdd8a10e99e Mon Sep 17 00:00:00 2001 From: Velaron Date: Tue, 31 Oct 2023 12:20:19 +0200 Subject: [PATCH] android: fix build errors --- engine/client/cl_gameui.c | 2 +- engine/common/host.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/client/cl_gameui.c b/engine/client/cl_gameui.c index ede3c36db2..fefdd7a73f 100644 --- a/engine/client/cl_gameui.c +++ b/engine/client/cl_gameui.c @@ -982,7 +982,7 @@ pfnCheckGameDll */ int GAME_EXPORT pfnCheckGameDll( void ) { -#if XASH_INTERNAL_GAMELIBS +#ifdef XASH_INTERNAL_GAMELIBS return true; #else string dllpath; diff --git a/engine/common/host.c b/engine/common/host.c index 51b5af4214..fa29fde2ed 100644 --- a/engine/common/host.c +++ b/engine/common/host.c @@ -1017,7 +1017,7 @@ void Host_InitCommon( int argc, char **argv, const char *progname, qboolean bCha #if TARGET_OS_IOS Q_strncpy( host.rootdir, IOS_GetDocsDir(), sizeof( host.rootdir )); #elif XASH_ANDROID && XASH_SDL - Q_strncpy( host.rootdir, SDL_AndroidGetExternalStoragePath, sizeof( host.rootdir )); + Q_strncpy( host.rootdir, SDL_AndroidGetExternalStoragePath(), sizeof( host.rootdir )); #elif XASH_PSVITA if ( !PSVita_GetBasePath( host.rootdir, sizeof( host.rootdir ))) {