From 732bc50a3ae3a038bc534ce66d7a2e3b392b71ab Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 3 Feb 2026 17:48:24 +0500 Subject: [PATCH] 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. --- filesystem/filesystem.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/filesystem/filesystem.c b/filesystem/filesystem.c index d3d6fa65..6406b9fa 100644 --- a/filesystem/filesystem.c +++ b/filesystem/filesystem.c @@ -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