|
|
|
@ -1017,10 +1017,11 @@ void Host_InitCommon( int argc, char **argv, const char *progname, qboolean bCha
@@ -1017,10 +1017,11 @@ void Host_InitCommon( int argc, char **argv, const char *progname, qboolean bCha
|
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
#if TARGET_OS_IOS |
|
|
|
|
const char *IOS_GetDocsDir(); |
|
|
|
|
Q_strncpy( host.rootdir, IOS_GetDocsDir(), sizeof(host.rootdir) ); |
|
|
|
|
Q_strncpy( host.rootdir, IOS_GetDocsDir(), sizeof( host.rootdir )); |
|
|
|
|
#elif XASH_ANDROID && XASH_SDL |
|
|
|
|
Q_strncpy( host.rootdir, SDL_AndroidGetExternalStoragePath, sizeof( host.rootdir )); |
|
|
|
|
#elif XASH_PSVITA |
|
|
|
|
if ( !PSVita_GetBasePath( host.rootdir, sizeof( host.rootdir ) ) ) |
|
|
|
|
if ( !PSVita_GetBasePath( host.rootdir, sizeof( host.rootdir ))) |
|
|
|
|
{ |
|
|
|
|
Sys_Error( "couldn't find xash3d data directory" ); |
|
|
|
|
host.rootdir[0] = 0; |
|
|
|
|