Sort wads when using find so that they get loaded in a consistent order.
This commit is contained in:
parent
07f116e487
commit
25abb1fdf7
1 changed files with 1 additions and 1 deletions
2
dcc
2
dcc
|
@ -43,7 +43,7 @@ case $1 in
|
|||
esac
|
||||
|
||||
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
|
||||
WADS=("-file" "${WADS[@]}")
|
||||
# otherwise, assume it's an iwad alone.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue