Browse Source

engine: fix build issues pointed by @Velaron

pull/2/head
Alibek Omarov 1 year ago
parent
commit
5ea074a1fd
  1. 2
      engine/client/cl_gameui.c
  2. 2
      engine/common/host.c

2
engine/client/cl_gameui.c

@ -982,7 +982,7 @@ pfnCheckGameDll
*/ */
int GAME_EXPORT pfnCheckGameDll( void ) int GAME_EXPORT pfnCheckGameDll( void )
{ {
#if XASH_INTERNAL_GAMELIBS #ifdef XASH_INTERNAL_GAMELIBS
return true; return true;
#else #else
string dllpath; string dllpath;

2
engine/common/host.c

@ -1020,7 +1020,7 @@ void Host_InitCommon( int argc, char **argv, const char *progname, qboolean bCha
#if TARGET_OS_IOS #if TARGET_OS_IOS
Q_strncpy( host.rootdir, IOS_GetDocsDir(), sizeof( host.rootdir )); Q_strncpy( host.rootdir, IOS_GetDocsDir(), sizeof( host.rootdir ));
#elif XASH_ANDROID && XASH_SDL #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 #elif XASH_PSVITA
if ( !PSVita_GetBasePath( host.rootdir, sizeof( host.rootdir ))) if ( !PSVita_GetBasePath( host.rootdir, sizeof( host.rootdir )))
{ {

Loading…
Cancel
Save