From 24f09004269576df49ef21b48806e0f42a8442e4 Mon Sep 17 00:00:00 2001 From: Attila Date: Mon, 22 Apr 2019 23:02:57 +0200 Subject: [PATCH] feat(csgoserver): Add SVG support to FastDL (#2298) Co-authored-by: borzak.attila@gmail.com CS:GO with Panorama now supports SVG custom logos, which are displayed in more places than a PNG logo. Panorama now uses materials/panorama/images/tournaments/teams folder to look for custom team logos, which can be .png and .svg Fixes #2297 --- lgsm/functions/command_fastdl.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lgsm/functions/command_fastdl.sh b/lgsm/functions/command_fastdl.sh index 19fc1b464..3c0d6b356 100644 --- a/lgsm/functions/command_fastdl.sh +++ b/lgsm/functions/command_fastdl.sh @@ -154,7 +154,7 @@ fn_fastdl_preview(){ # Garry's Mod if [ "${shortname}" == "gmod" ]; then cd "${systemdir}" || exit - allowed_extentions_array=( "*.ain" "*.bsp" "*.mdl" "*.mp3" "*.ogg" "*.otf" "*.pcf" "*.phy" "*.png" "*.vtf" "*.vmt" "*.vtx" "*.vvd" "*.ttf" "*.wav" ) + allowed_extentions_array=( "*.ain" "*.bsp" "*.mdl" "*.mp3" "*.ogg" "*.otf" "*.pcf" "*.phy" "*.png" "*.svg" "*.vtf" "*.vmt" "*.vtx" "*.vvd" "*.ttf" "*.wav" ) for allowed_extention in "${allowed_extentions_array[@]}"; do fileswc=0 tput sc @@ -176,7 +176,7 @@ fn_fastdl_preview(){ if [ "${directory}" == "maps" ]; then local allowed_extentions_array=( "*.bsp" "*.ain" "*.nav" "*.jpg" "*.txt" ) elif [ "${directory}" == "materials" ]; then - local allowed_extentions_array=( "*.vtf" "*.vmt" "*.vbf" ) + local allowed_extentions_array=( "*.vtf" "*.vmt" "*.vbf" "*.png" "*.svg" ) elif [ "${directory}" == "models" ]; then local allowed_extentions_array=( "*.vtx" "*.vvd" "*.mdl" "*.phy" "*.jpg" "*.png" ) elif [ "${directory}" == "particles" ]; then @@ -315,7 +315,7 @@ fn_fastdl_source(){ if [ "${directory}" == "maps" ]; then local allowed_extentions_array=( "*.bsp" "*.ain" "*.nav" "*.jpg" "*.txt" ) elif [ "${directory}" == "materials" ]; then - local allowed_extentions_array=( "*.vtf" "*.vmt" "*.vbf" ) + local allowed_extentions_array=( "*.vtf" "*.vmt" "*.vbf" "*.png" "*.svg" ) elif [ "${directory}" == "models" ]; then local allowed_extentions_array=( "*.vtx" "*.vvd" "*.mdl" "*.phy" "*.jpg" "*.png" ) elif [ "${directory}" == "particles" ]; then @@ -430,4 +430,4 @@ echo "FastDL files are located in:" echo "${fastdldir}" echo "FastDL completed" fn_script_log_info "FastDL completed" -core_exit.sh \ No newline at end of file +core_exit.sh