mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-28 19:20:16 +00:00
chore: Replace TF2 fix with LD_PRELOAD method
This commit is contained in:
parent
69c78de60e
commit
f911e0207f
@ -179,22 +179,16 @@ get-boilr:
|
||||
cp ~/.local/share/applications/BoilR.desktop ~/Desktop
|
||||
fi
|
||||
|
||||
# Patch a bug in TF2 that causes it to crash at startup
|
||||
patch-tf2-tcmalloc:
|
||||
# Patch a bug in some 32-bit Source 1.x titles that causes them to crash at startup
|
||||
patch-source1-tcmalloc:
|
||||
#!/usr/bin/env bash
|
||||
if [ -f "$HOME/.steam/steam/steamapps/common/Team\ Fortress\ 2/bin/hl2_linux" ]; then
|
||||
echo "Found TF2 on internal SSD"
|
||||
podman run \
|
||||
-v $HOME/.steam/steam/steamapps/common/Team\ Fortress\ 2/bin:/hl2_linux:Z \
|
||||
ghcr.io/maisatanel/tcmalloc-hl2-fixer:main
|
||||
echo "TF2 patch complete."
|
||||
fi
|
||||
if [ -f "/run/media/mmcblk0p1/steamapps/common/Team\ Fortress\ 2/bin/hl2_linux" ]; then
|
||||
echo "Found TF2 on SD card"
|
||||
podman run \
|
||||
-v /run/media/mmcblk0p1/steamapps/common/Team\ Fortress\ 2/bin:/hl2_linux:Z \
|
||||
ghcr.io/maisatanel/tcmalloc-hl2-fixer:main
|
||||
echo "TF2 patch complete."
|
||||
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
||||
IMAGE_FLAVOR=$(jq -r '."image-flavor"' < $IMAGE_INFO)
|
||||
echo 'Add the following as a launch option in Steam:'
|
||||
if [[ ${IMAGE_FLAVOR} ~= 'nvidia' || ${IMAGE_FLAVOR} =~ "deck" || ${IMAGE_FLAVOR} =~ "ally" || ${IMAGE_FLAVOR} =~ "framegame" ]]; then
|
||||
echo 'LD_PRELOAD=/usr/lib/libtcmalloc.so %command%'
|
||||
else
|
||||
echo 'LD_PRELOAD=/usr/lib32/libtcmalloc.so %command%'
|
||||
fi
|
||||
|
||||
# Patch GMod's 64-bit beta to work properly on Linux (https://github.com/solsticegamestudios/GModCEFCodecFix)
|
||||
|
@ -126,13 +126,17 @@ enable-supergfxctl:
|
||||
echo "This requires an Nvidia image."
|
||||
fi
|
||||
|
||||
# Patch a bug in TF2 that causes it to crash at startup
|
||||
patch-tf2-tcmalloc:
|
||||
# Patch a bug in some 32-bit Source 1.x titles that causes them to crash at startup
|
||||
patch-source1-tcmalloc:
|
||||
#!/usr/bin/env bash
|
||||
podman run \
|
||||
-v $HOME/.steam/steam/steamapps/common/Team\ Fortress\ 2/bin:/hl2_linux:Z \
|
||||
ghcr.io/maisatanel/tcmalloc-hl2-fixer:main
|
||||
echo "TF2 patch complete."
|
||||
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
||||
IMAGE_FLAVOR=$(jq -r '."image-flavor"' < $IMAGE_INFO)
|
||||
echo 'Add the following as a launch option in Steam:'
|
||||
if [[ ${IMAGE_FLAVOR} ~= 'nvidia' || ${IMAGE_FLAVOR} =~ "deck" || ${IMAGE_FLAVOR} =~ "ally" || ${IMAGE_FLAVOR} =~ "framegame" ]]; then
|
||||
echo 'LD_PRELOAD=/usr/lib/libtcmalloc.so %command%'
|
||||
else
|
||||
echo 'LD_PRELOAD=/usr/lib32/libtcmalloc.so %command%'
|
||||
fi
|
||||
|
||||
# Patch GMod's 64-bit beta to work properly on Linux (https://github.com/solsticegamestudios/GModCEFCodecFix)
|
||||
patch-gmod:
|
||||
|
Loading…
x
Reference in New Issue
Block a user