Update scripts to select Metal mod vol 7, fall back to vol 6 if both are available.

This commit is contained in:
Storm Dragon
2024-04-18 16:26:42 -04:00
parent 39f8c3c29c
commit b4c0573d2c
4 changed files with 15 additions and 7 deletions

View File

@ -94,7 +94,9 @@ gameOption="$(dialog --backtitle "Select your Doom!" \
--help-label "Exit" \
--menu "Please select one" 0 0 0 "${doomGames[@]}" --stdout)"
buttonCode=$?
if [[ -e "${doomPath}/DoomMetalVol6.wad" ]]; then
if [[ -e "${doomPath}/DoomMetalVol7.wad" ]]; then
gameOption+=" DoomMetalVol7.wad"
elif [[ -e "${doomPath}/DoomMetalVol6.wad" ]]; then
gameOption+=" DoomMetalVol6.wad"
fi