From 894726d699a4ce93232d980ebf4e92152e2b96d9 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 27 Jun 2021 00:02:16 +0300 Subject: [PATCH] engine: disable custom DLL loader for everything except 32-bit x86 --- engine/common/filesystem.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/common/filesystem.c b/engine/common/filesystem.c index 06ebc672..f6902a85 100644 --- a/engine/common/filesystem.c +++ b/engine/common/filesystem.c @@ -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