Update path check for yadoom.

This commit is contained in:
Storm Dragon 2024-12-26 12:08:36 -05:00
parent 22b97be40a
commit ee0e72fe6d

View File

@ -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