Browse Source

fix(mods): BepInEx_Valheim prevents startup on systems with newer glibc (#4788)

* fix(mods): BepInEx_Valheim prevents startup on systems with newer glibc

Load the libdoorstop_x64.so solely for the dedicated server executable
and not for the whole startup routine, which causes errors in startup or
not loading the mods at all. (see #4149 and #4491)

* chore(prettier): format code

---------

Co-authored-by: Daniel Gibbs <[email protected]>
Co-authored-by: dgibbs64 <[email protected]>
pull/4940/head
fwillo 2 days ago
committed by GitHub
parent
commit
9fd21e5b9a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 12
      .github/scripts/details-check-generate-matrix.sh
  2. 2
      lgsm/modules/fix_vh.sh

12
.github/scripts/details-check-generate-matrix.sh

@ -36,12 +36,12 @@ while read -r line; do
;;
esac
{
echo -n "{";
echo -n "\"shortname\":";
echo -n "\"${shortname}\"";
echo -n ",\"runner\":";
echo -n "\"${runner}\"";
echo -n "},";
echo -n "{"
echo -n "\"shortname\":"
echo -n "\"${shortname}\""
echo -n ",\"runner\":"
echo -n "\"${runner}\""
echo -n "},"
} >> "shortnamearray.json"
done < <(tail -n +2 serverlist.csv)
sed -i '$ s/.$//' "shortnamearray.json"

2
lgsm/modules/fix_vh.sh

@ -33,7 +33,7 @@ if [ -f "${modsinstalledlistfullpath}" ]; then
export DOORSTOP_TARGET_ASSEMBLY=./BepInEx/core/BepInEx.Preloader.dll
export LD_LIBRARY_PATH="./doorstop_libs:${LD_LIBRARY_PATH}"
export LD_PRELOAD="libdoorstop_x64.so:${LD_PRELOAD}"
preexecutable="LD_PRELOAD=\"libdoorstop_x64.so:${LD_PRELOAD}\" ${preexecutable}"
export SteamAppId=892970
fi

Loading…
Cancel
Save