2024-08-13 00:54:48 -04:00
#!/usr/bin/env bash
2024-08-30 17:59:30 -04:00
# check for required wad.
source ${ 0 %/* } /TobyCustom/.dependencies
check_dependencies "aoddoom1.wad" "https://www.moddb.com/mods/army-of-darkness-total-conversion/addons/army-of-darkness-doom-wad" " Place \"aoddoom1.wad\" in \" ${ gamePath } \". "
2024-08-13 00:54:48 -04:00
gamePath = ~/.local/games/doom
# Set up the pk3 and wad files
gameOption = (
" ${ gamePath } /TobyAccMod_V ${ tobyVersion } .pk3 "
" $gamePath /Addons/MENU/TobyV ${ tobyVersion %%-* } _ " *
" ${ gamePath } /aoddoom1.wad "
)
# Check for and include if present a wad. Some people may not have it.
if [ [ -e " ${ gamePath } /DoomMetalVol7.wad " ] ] ; then
gameOption += ( " ${ gamePath } /DoomMetalVol7.wad " )
elif [ [ -e " ${ gamePath } /DoomMetalVol6.wad " ] ] ; then
gameOption += ( " ${ gamePath } /DoomMetalVol6.wad " )
fi
2024-08-29 11:59:57 -04:00
source ${ 0 %/* } /TobyCustom/.mapmenu