filesystem: set custom_loader flag even if loading DLLs from archives is unsupported

After all, it's an engine job to figure out whether it wants to load this binary or not.
This commit is contained in:
Alibek Omarov
2026-02-03 17:48:24 +05:00
parent e9ffe12481
commit 732bc50a3a

View File

@@ -1564,12 +1564,15 @@ static qboolean FS_FindLibrary( const char *dllname, qboolean directpath, fs_dll
else
{
Q_snprintf( dllInfo->fullPath, sizeof( dllInfo->fullPath ), "%s", dllInfo->shortPath );
Con_Printf( "%s%s: loading libraries from archives is %s\n",
#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 non portable and might fail on other platforms\n", __func__ );
dllInfo->custom_loader = true;
S_WARN, __func__, "non portable and might fail on other platforms"
#else
Con_Printf( S_WARN "%s: loading libraries from archives is unsupported on this platform\n", __func__ );
S_ERROR, __func__, "unsupported on this platform"
#endif
);
dllInfo->custom_loader = true;
}
}
else