From 5f183a63eeea94999c2e903e9ca4e491b3da2579 Mon Sep 17 00:00:00 2001 From: Ensiform Date: Mon, 11 Sep 2023 15:55:34 -0500 Subject: [PATCH] Fix macOS dylib loader not checking for debug suffix --- src/unix/unix_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/unix/unix_main.c b/src/unix/unix_main.c index ebb966cd..075dfee2 100644 --- a/src/unix/unix_main.c +++ b/src/unix/unix_main.c @@ -731,7 +731,11 @@ static void *try_dlopen(const char *base, const char *gamedir, const char *fname #ifdef __APPLE__ const char *Sys_GetDLLName(const char *name) { +#ifdef _DEBUG + return va("%s_d_mac", name); +#else return va("%s_mac", name); +#endif } #else const char *Sys_GetDLLName(const char *name)