Fix wrapper unable to find the runner for real

Fix #32
This commit is contained in:
Miepee 2022-09-30 10:15:36 +02:00
parent d378132085
commit 56d7dd2d36

View file

@ -130,7 +130,7 @@ patch_am2r ()
#!/usr/bin/env bash
# This environment variable fixes Mesa support. If another driver is used this should not do anything.
# See https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4181 for more information.
radeonsi_sync_compile="true" exec "$(dirname "$(readlink "$0")")/.runner-unwrapped" "$@"
radeonsi_sync_compile="true" exec "$(dirname "$(readlink -f "$0")")/.runner-unwrapped" "$@"
' > "$GAMEDIR/runner"
chmod +x "$GAMEDIR/runner" "$GAMEDIR/.runner-unwrapped"