From 460fa3f3d76150f464afc1ab4c864b1e628427c8 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 4 Mar 2024 13:39:20 +0100 Subject: Added libstdc++ when loading libGL (only if libgcc_s is already loaded), helps some linux Unity games --- src/wrapped/wrappedlibgl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/wrapped/wrappedlibgl.c b/src/wrapped/wrappedlibgl.c index f7d7633e..932af0e2 100644 --- a/src/wrapped/wrappedlibgl.c +++ b/src/wrapped/wrappedlibgl.c @@ -435,6 +435,12 @@ static void* find_glGetVkProcAddrNV_Fct(void* fct) s->resolved = 1; \ s->addr = (uintptr_t)find_glXSwapIntervalEXT_Fct(symb); \ } \ + if(GetLibInternal("libgcc_s.so.1")) { \ + setNeededLibs(lib, 1, "libstdc++.so.6"); \ + } \ + +// This is a small hack to allow loading of libstdc++ as a dependancy for libGL as this is a the case with mesa. Some game, like Mini Metro on Steam don't have +// libstdc++.so.6 as a dependancy and yet needs it to run properly, rellying on other dependancies to work #include "wrappedlib_init.h" -- cgit 1.4.1