mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
filesystem: fix loading dlls by full path as required by metamod-r
This commit is contained in:
@@ -1391,7 +1391,7 @@ static qboolean FS_FindLibrary( const char *dllname, qboolean directpath, fs_dll
|
|||||||
// NOTE: gamedll might resolve it's own path using dladdr() and expects absolute path
|
// NOTE: gamedll might resolve it's own path using dladdr() and expects absolute path
|
||||||
// NOTE: the only allowed case when searchpath is set by absolute path is the RoDir
|
// NOTE: the only allowed case when searchpath is set by absolute path is the RoDir
|
||||||
// rather than figuring out whether path is absolute, just check if it matches
|
// rather than figuring out whether path is absolute, just check if it matches
|
||||||
if( !Q_strnicmp( search->filename, fs_rodir, Q_strlen( fs_rodir )))
|
if( COM_CheckStringEmpty( fs_rodir ) && !Q_strnicmp( search->filename, fs_rodir, Q_strlen( fs_rodir )))
|
||||||
{
|
{
|
||||||
Q_snprintf( dllInfo->fullPath, sizeof( dllInfo->fullPath ), "%s%s", search->filename, dllInfo->shortPath );
|
Q_snprintf( dllInfo->fullPath, sizeof( dllInfo->fullPath ), "%s%s", search->filename, dllInfo->shortPath );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user