From ca42606805a4c78e6953d6745f807dc12175a69d Mon Sep 17 00:00:00 2001 From: Apaczer <94932128+Apaczer@users.noreply.github.com> Date: Tue, 1 Apr 2025 20:20:41 +0200 Subject: [PATCH] frontend/menu: disable dl func. on static gcc --- frontend/menu.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/menu.c b/frontend/menu.c index c6a2c30a..5975b801 100644 --- a/frontend/menu.c +++ b/frontend/menu.c @@ -12,7 +12,9 @@ #include #include #include +#ifndef NO_DYLIB #include +#endif #include #include #include @@ -2488,7 +2490,6 @@ static void scan_bios_plugins(void) char fname[MAXPATHLEN]; struct dirent *ent; int bios_i, gpu_i, spu_i, mc_i; - char *p; DIR *dir; bioses[0] = "HLE"; @@ -2501,7 +2502,11 @@ static void scan_bios_plugins(void) dir = opendir(fname); if (dir == NULL) { perror("scan_bios_plugins bios opendir"); +#ifndef NO_DYLIB goto do_plugins; +#else + goto do_memcards; +#endif } while (1) { @@ -2535,7 +2540,9 @@ static void scan_bios_plugins(void) closedir(dir); +#ifndef NO_DYLIB do_plugins: + char *p; snprintf(fname, sizeof(fname), "%s/", Config.PluginsDir); dir = opendir(fname); if (dir == NULL) { @@ -2586,6 +2593,7 @@ do_plugins: } closedir(dir); +#endif do_memcards: dir = opendir("." MEMCARD_DIR); -- 2.39.5