From ee0e72fe6dbfbc0dec3ef371c4f558fad1062ce6 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 26 Dec 2024 12:08:36 -0500 Subject: [PATCH] Update path check for yadoom. --- .launch/FreeDoom.game | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.launch/FreeDoom.game b/.launch/FreeDoom.game index 7828d63..d33fb27 100755 --- a/.launch/FreeDoom.game +++ b/.launch/FreeDoom.game @@ -43,8 +43,8 @@ export gamePath=~/.local/games/doom export doomPath="$(find /usr/share -type d -name "doom" 2> /dev/null | head -1)" # Path to gzdoom or yadoom. -if [[ -x "yadoom" ]]; then - export gzdoom=$(readlink -f "yadoom") +if [[ -x "${BASH_SOURCE[0]%/*}/yadoom" ]]; then + export gzdoom=$"${BASH_SOURCE[0]%/*}/yadoom" else export gzdoom="$(command -v gzdoom)" fi