mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-11-04 09:32:45 +01:00
engine: fix searching filesystem_stdio on mobile platforms
This commit is contained in:
parent
bc00c6c54b
commit
d6dfeaeba7
@ -398,8 +398,7 @@ typedef void (*xcommand_t)( void );
|
||||
//
|
||||
// filesystem_engine.c
|
||||
//
|
||||
#define FILESYSTEM_STDIO_DLL "filesystem_stdio." OS_LIB_EXT
|
||||
qboolean FS_LoadProgs( const char *name );
|
||||
qboolean FS_LoadProgs( void );
|
||||
void FS_Init( void );
|
||||
void FS_Shutdown( void );
|
||||
|
||||
|
@ -56,8 +56,15 @@ static void FS_UnloadProgs( void )
|
||||
fs_hInstance = 0;
|
||||
}
|
||||
|
||||
qboolean FS_LoadProgs( const char *name )
|
||||
#ifdef XASH_INTERNAL_GAMELIBS
|
||||
#define FILESYSTEM_STDIO_DLL "filesystem_stdio"
|
||||
#else
|
||||
#define FILESYSTEM_STDIO_DLL "filesystem_stdio." OS_LIB_EXT
|
||||
#endif
|
||||
|
||||
qboolean FS_LoadProgs( void )
|
||||
{
|
||||
const char *name = FILESYSTEM_STDIO_DLL;
|
||||
FSAPI GetFSAPI;
|
||||
|
||||
fs_hInstance = COM_LoadLibrary( name, false, true );
|
||||
|
@ -1033,7 +1033,7 @@ void Host_InitCommon( int argc, char **argv, const char *progname, qboolean bCha
|
||||
return;
|
||||
}
|
||||
|
||||
FS_LoadProgs( FILESYSTEM_STDIO_DLL );
|
||||
FS_LoadProgs();
|
||||
|
||||
if( FS_SetCurrentDirectory( host.rootdir ) != 0 )
|
||||
Con_Reportf( "%s is working directory now\n", host.rootdir );
|
||||
|
Loading…
Reference in New Issue
Block a user