Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lgsm/modules/command_fastdl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ fn_fastdl_preview() {
done
# Source engine
else
fastdl_directories_array=("maps" "materials" "models" "particles" "sound" "resources")
fastdl_directories_array=("maps" "materials" "models" "particles" "sound" "resource")
for directory in "${fastdl_directories_array[@]}"; do
if [ -d "${systemdir}/${directory}" ]; then
if [ "${directory}" == "maps" ]; then
Expand All @@ -175,6 +175,8 @@ fn_fastdl_preview() {
local allowed_extentions_array=("*.pcf")
elif [ "${directory}" == "sound" ]; then
local allowed_extentions_array=("*.wav" "*.mp3" "*.ogg")
elif [ "${directory}" == "resource" ]; then
local allowed_extentions_array=("*")
fi
for allowed_extention in "${allowed_extentions_array[@]}"; do
fileswc=0
Expand Down Expand Up @@ -323,6 +325,8 @@ fn_fastdl_source() {
local allowed_extentions_array=("*.pcf")
elif [ "${directory}" == "sound" ]; then
local allowed_extentions_array=("*.wav" "*.mp3" "*.ogg")
elif [ "${directory}" == "resource" ]; then
local allowed_extentions_array=("*")
fi
for allowed_extention in "${allowed_extentions_array[@]}"; do
fileswc=0
Expand Down