Optionally use MOD_LIST_MAP env variable to handle enabling mods

This commit is contained in:
sarcasticgoat 2024-11-04 15:56:40 -05:00 committed by sarcasticgoat
parent 6916fcb150
commit 4808283c2a

View File

@ -26,7 +26,12 @@ disable_mod()
} }
# Enable or disable DLCs if configured # Enable or disable DLCs if configured
if [[ ${DLC_SPACE_AGE:-} == "true" ]]; then if [[ -n "$MOD_LIST_MAP" ]]; then
# if MOD_LIST_MAP env variable is defined, then use it to determine the mods to enable
for mod in $MOD_LIST_MAP; do
ENABLE_MODS+=("$mod")
done
elif [[ ${DLC_SPACE_AGE:-} == "true" ]]; then
# Define the DLC mods # Define the DLC mods
ENABLE_MODS=(${ALL_SPACE_AGE_MODS[@]}) ENABLE_MODS=(${ALL_SPACE_AGE_MODS[@]})
elif [[ ${DLC_SPACE_AGE:-} == "false" ]]; then elif [[ ${DLC_SPACE_AGE:-} == "false" ]]; then