mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user