Sort wads when using find so that they get loaded in a consistent order.

This commit is contained in:
yrriban 2024-07-29 22:56:01 -04:00
parent 07f116e487
commit 25abb1fdf7

2
dcc
View file

@ -43,7 +43,7 @@ case $1 in
esac esac
WADS=() WADS=()
readarray -d '' WADS < <(find "${PWADPATH}" -maxdepth 1 -iname '*.wad' -print0) readarray -d '' WADS < <(find "${PWADPATH}" -maxdepth 1 -iname '*.wad' -print0 | sort -z)
if ! [[ -z "${WADS[@]}" ]]; then if ! [[ -z "${WADS[@]}" ]]; then
WADS=("-file" "${WADS[@]}") WADS=("-file" "${WADS[@]}")
# otherwise, assume it's an iwad alone. # otherwise, assume it's an iwad alone.