mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-02-06 04:04:33 +00:00
engine: client: disable server DLL probe for GameUI, check it's existence instead
This commit is contained in:
parent
7f9025e178
commit
a2c9ac5b1f
@ -982,28 +982,21 @@ pfnCheckGameDll
|
|||||||
*/
|
*/
|
||||||
int GAME_EXPORT pfnCheckGameDll( void )
|
int GAME_EXPORT pfnCheckGameDll( void )
|
||||||
{
|
{
|
||||||
string dllpath;
|
#if XASH_INTERNAL_GAMELIBS
|
||||||
void *hInst;
|
|
||||||
|
|
||||||
#if TARGET_OS_IPHONE
|
|
||||||
// loading server library drains too many ram
|
|
||||||
// so 512MB iPod Touch cannot even connect to
|
|
||||||
// to servers in cstrike
|
|
||||||
return true;
|
return true;
|
||||||
#endif
|
#else
|
||||||
|
string dllpath;
|
||||||
|
|
||||||
if( svgame.hInstance )
|
if( svgame.hInstance )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
COM_GetCommonLibraryPath( LIBRARY_SERVER, dllpath, sizeof( dllpath ));
|
COM_GetCommonLibraryPath( LIBRARY_SERVER, dllpath, sizeof( dllpath ));
|
||||||
|
|
||||||
if(( hInst = COM_LoadLibrary( dllpath, true, false )) != NULL )
|
if( FS_FileExists( dllpath, false ))
|
||||||
{
|
|
||||||
COM_FreeLibrary( hInst ); // don't increase linker's reference counter
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
Con_Reportf( S_WARN "Could not load server library: %s\n", COM_GetLibraryError() );
|
|
||||||
return false;
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user