Dependency checking added for WolfenDoom.
This commit is contained in:
parent
db9c12f81a
commit
f72f9af100
31
.scripts/TobyCustom/WolfenDoom.sh
Executable file
31
.scripts/TobyCustom/WolfenDoom.sh
Executable file
@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# check for required pk3.
|
||||
source ${0%/*}/TobyCustom/.dependencies
|
||||
check_dependencies "${gamePath}/Addons/WOLFENDOOM/orig_enh.pk3" \
|
||||
"https://www.moddb.com/mods/wolfendoom/downloads/wolfendoom-enhanced" \
|
||||
"mkdir -p ${gamePath}/Addons/WOLFENDOOM/" \
|
||||
"Place all pk3 files from the zip archive in:" \
|
||||
"${gamePath}/Addons/WOLFENDOOM/" \
|
||||
"There should be three of them noct_enh.pk3, orig_enh.pk3, and sod_enh.pk3"
|
||||
|
||||
# Set up the pk3 and wad files
|
||||
gameOption=(
|
||||
"${gamePath}/TobyAccMod_V${tobyVersion}.pk3"
|
||||
"$gamePath/Addons/MENU/TobyV${tobyVersion%%-*}_"*
|
||||
"$gamePath/Addons/DOOM/TobyV${tobyVersion%%-*}_Proximity.pk3"
|
||||
)
|
||||
|
||||
menuList=("${gamePath}/Addons/WOLFENDOOM/orig_enh.pk3" "WolfenDoom"
|
||||
"${gamePath}/Addons/WOLFENDOOM/sod_enh.pk3" "WolfenDoom - Spear of Destiny"
|
||||
"${gamePath}/Addons/WOLFENDOOM/noct_enh.pk3" "WolfenDoom - Nocturne"
|
||||
)
|
||||
|
||||
pk3=$(dialog --backtitle "Select Game" \
|
||||
--clear \
|
||||
--no-tags \
|
||||
--cancel-label "Exit" \
|
||||
--ok-label "Next" \
|
||||
--menu "Please select one" 0 0 0 "${menuList[@]}" --stdout)
|
||||
[[ $? -ne 0 ]] && exit 0
|
||||
gameOption+=("${pk3}")
|
Loading…
Reference in New Issue
Block a user