Kaynağa Gözat

fix(fastdl): include Source resource files (#4953)

Co-authored-by: BreezeDelegate <271538431+BreezeDelegate@users.noreply.github.com>
Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
Breeze 1 hafta önce
ebeveyn
işleme
52373e88c2
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 5 1
      lgsm/modules/command_fastdl.sh

+ 5 - 1
lgsm/modules/command_fastdl.sh

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