engine: disable custom DLL loader for everything except 32-bit x86

This commit is contained in:
Alibek Omarov 2021-06-27 00:02:16 +03:00
parent f8e6033ae6
commit 894726d699
1 changed files with 4 additions and 0 deletions

View File

@ -3347,7 +3347,11 @@ dll_user_t *FS_FindLibrary( const char *dllname, qboolean directpath )
{
// NOTE: if search is NULL let the OS found library himself
Q_strncpy( hInst->fullPath, dllpath, sizeof( hInst->fullPath ));
#if XASH_WIN32 && XASH_X86 // a1ba: custom loader is non-portable (I just don't want to touch it)
hInst->custom_loader = (search) ? true : false;
#else
hInst->custom_loader = false;
#endif
}
fs_ext_path = false; // always reset direct paths