From e383c6cced733337789052361d2c1f47dd1cbefb Mon Sep 17 00:00:00 2001 From: Daniel Ceregatti Date: Wed, 18 Oct 2023 17:39:20 -0700 Subject: [PATCH] Add cfgenvironment.xml support. WIP. --- files/bin/xml.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/bin/xml.sh b/files/bin/xml.sh index 3c6f1bc..46bdf5d 100755 --- a/files/bin/xml.sh +++ b/files/bin/xml.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # A generic script that retrieves XML files from mods, either upstream in remote endpoints, or -# locally from the downloaded mod directory +# locally from the downloaded mod directory, or from project files. set -eE @@ -9,13 +9,14 @@ ID=${1} if ! [ -f ${FILES}/mods/${ID}/xml.env ] then + echo "No xml.env exists for the ID ${ID}." exit 0 fi source ${FILES}/mods/${ID}/xml.env # Iterate over the file names we can handle -for var in CFGEVENTSPAWNS CFGSPAWNABLETYPES EVENTS TYPES +for var in CFGENVIRONMENT CFGEVENTSPAWNS CFGSPAWNABLETYPES EVENTS TYPES do DIR="${WORKSHOP_DIR}/${ID}" OUT="${DIR}/${var,,}.xml"