Updated iwad selector to follow simlinks so that it will work with the way lgm handles installed Blasphemer package.
This commit is contained in:
parent
af9787d030
commit
ea8136801f
@ -55,7 +55,7 @@ for i in "${wadPaths[@]}"; do
|
||||
if [[ -d "$i" ]]; then
|
||||
while IFS= read -r -d $'\0' wad; do
|
||||
is_iwad "$wad" && wadList+=("$wad")
|
||||
done < <(find "$i" -maxdepth 1 -type f -iname '*.wad' -print0)
|
||||
done < <(find "$i" -follow -maxdepth 1 -type f -iname '*.wad' -print0)
|
||||
fi
|
||||
done
|
||||
|
||||
@ -79,7 +79,7 @@ iwad=$(yad --list \
|
||||
--skip-taskbar \
|
||||
"${wadMenu[@]}")
|
||||
yadCode="$?"
|
||||
[[ ${yadCode} -eq 1 ]] && exit 0
|
||||
[[ ${yadCode} -eq 0 ]] || exit 0
|
||||
iwad="${iwad#*|}"
|
||||
iwad="${iwad%|}"
|
||||
gzdoom "$@" -iwad "${iwad}"
|
||||
|
Loading…
Reference in New Issue
Block a user