mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-17 06:30:44 +01:00
engine: let engine find the filesystem library, if it wasn't loaded yet
This commit is contained in:
parent
fd7dba74cd
commit
3c4eec62ae
@ -91,9 +91,16 @@ dll_user_t *FS_FindLibrary( const char *dllname, qboolean directpath )
|
|||||||
dll_user_t *p;
|
dll_user_t *p;
|
||||||
fs_dllinfo_t dllInfo;
|
fs_dllinfo_t dllInfo;
|
||||||
|
|
||||||
// no fs loaded, can't search
|
// no fs loaded yet, but let engine find fs
|
||||||
if( !g_fsapi.FindLibrary )
|
if( !g_fsapi.FindLibrary )
|
||||||
return NULL;
|
{
|
||||||
|
p = Mem_Calloc( host.mempool, sizeof( dll_user_t ));
|
||||||
|
Q_strncpy( p->shortPath, dllname, sizeof( p->shortPath ));
|
||||||
|
Q_strncpy( p->fullPath, dllname, sizeof( p->fullPath ));
|
||||||
|
Q_strncpy( p->dllName, dllname, sizeof( p->dllName ));
|
||||||
|
|
||||||
|
return p;
|
||||||
|
}
|
||||||
|
|
||||||
// fs can't find library
|
// fs can't find library
|
||||||
if( !g_fsapi.FindLibrary( dllname, directpath, &dllInfo ))
|
if( !g_fsapi.FindLibrary( dllname, directpath, &dllInfo ))
|
||||||
|
Loading…
Reference in New Issue
Block a user