mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-12 16:18:01 +00:00
engine: host: set rootdir on Android SDL port
This commit is contained in:
parent
5aac5d2a52
commit
ce39255ef0
@ -1017,8 +1017,9 @@ void Host_InitCommon( int argc, char **argv, const char *progname, qboolean bCha
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
#if TARGET_OS_IOS
|
#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
|
#elif XASH_PSVITA
|
||||||
if ( !PSVita_GetBasePath( host.rootdir, sizeof( host.rootdir )))
|
if ( !PSVita_GetBasePath( host.rootdir, sizeof( host.rootdir )))
|
||||||
{
|
{
|
||||||
|
@ -37,6 +37,11 @@ void Platform_MessageBox( const char *title, const char *message, qboolean paren
|
|||||||
qboolean Sys_DebuggerPresent( void ); // optional, see Sys_DebugBreak
|
qboolean Sys_DebuggerPresent( void ); // optional, see Sys_DebugBreak
|
||||||
void Platform_SetStatus( const char *status );
|
void Platform_SetStatus( const char *status );
|
||||||
|
|
||||||
|
// legacy iOS port functions
|
||||||
|
#if TARGET_OS_IOS
|
||||||
|
const char *IOS_GetDocsDir( void );
|
||||||
|
#endif // TARGET_OS_IOS
|
||||||
|
|
||||||
#if XASH_WIN32 || XASH_LINUX
|
#if XASH_WIN32 || XASH_LINUX
|
||||||
#define XASH_PLATFORM_HAVE_STATUS 1
|
#define XASH_PLATFORM_HAVE_STATUS 1
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user