Skip to content

Commit

Permalink
filesystem: fix loading dlls by full path as required by metamod-r
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Dec 5, 2024
1 parent 5007f84 commit b28c118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filesystem/filesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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: 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
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 );
}
Expand Down

0 comments on commit b28c118

Please sign in to comment.