2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 01:45:19 +01:00

filesystem: fix loading libraries from archives on Windows

This commit is contained in:
Alibek Omarov 2024-07-21 01:41:53 +03:00
parent 6d98d2c7c3
commit 963cbf61e4

View File

@ -1369,9 +1369,9 @@ static qboolean FS_FindLibrary( const char *dllname, qboolean directpath, fs_dll
} }
else else
{ {
Q_snprintf( dllInfo->fullPath, sizeof( dllInfo->fullPath ), "%s%s", search->filename, dllInfo->shortPath ); Q_snprintf( dllInfo->fullPath, sizeof( dllInfo->fullPath ), "%s", dllInfo->shortPath );
#if XASH_WIN32 && XASH_X86 // a1ba: custom loader is non-portable (I just don't want to touch it) #if XASH_WIN32 && XASH_X86 // a1ba: custom loader is non-portable (I just don't want to touch it)
Con_Printf( S_WARN "%s: loading libraries from archives is deprecated and will be removed in the future\n", __func__ ); Con_Printf( S_WARN "%s: loading libraries from archives is non portable and might fail on other platforms\n", __func__ );
dllInfo->custom_loader = true; dllInfo->custom_loader = true;
#else #else
Con_Printf( S_WARN "%s: loading libraries from archives is unsupported on this platform\n", __func__ ); Con_Printf( S_WARN "%s: loading libraries from archives is unsupported on this platform\n", __func__ );