More fixes for finicky systems.

This commit is contained in:
Storm Dragon 2024-01-21 05:02:41 -05:00
parent 93f5ab240f
commit 73d3ad2c2b

View File

@ -17,11 +17,11 @@ tobyVersion="7-0"
doomGames=( doomGames=(
# Unmodified Doom with accessibility. # Unmodified Doom with accessibility.
"${doomPath}/TobyAccMod_V${tobyVersion}.pk3" "Freedoom" "TobyAccMod_V${tobyVersion}.pk3" "Freedoom"
# Toby accessibility mods # Toby accessibility mods
"${doomPath}/TobyAccMod_V${tobyVersion}.pk3 ${doomPath}/TobyDoomLevels.wad" "Freedoom Toby Delux Map Pack" "TobyAccMod_V${tobyVersion}.pk3 TobyDoomLevels.wad" "Freedoom Toby Delux Map Pack"
# OperationMDK # OperationMDK
"${doomPath}/TobyAccMod_V${tobyVersion}.pk3 ${doomPath}/OpMDK.wad" "Freedoom OperationMDK" "TobyAccMod_V${tobyVersion}.pk3 OpMDK.wad" "Freedoom OperationMDK"
) )
grepStrings=( grepStrings=(
@ -55,7 +55,7 @@ gameOption="$(dialog --backtitle "Select your Doom!" \
--menu "Please select one" 0 0 0 "${doomGames[@]}" --stdout)" --menu "Please select one" 0 0 0 "${doomGames[@]}" --stdout)"
buttonCode=$? buttonCode=$?
if [[ -e "${doomPath}/DoomMetalVol6.wad" ]]; then if [[ -e "${doomPath}/DoomMetalVol6.wad" ]]; then
gameOption+=" ${doomPath}/DoomMetalVol6.wad" gameOption+=" DoomMetalVol6.wad"
fi fi
case ${buttonCode} in case ${buttonCode} in
@ -87,7 +87,7 @@ case ${buttonCode} in
dialog --backtitle "Co-op" --clear --msgbox "No ip address or URL given." -1 -1 --stdout dialog --backtitle "Co-op" --clear --msgbox "No ip address or URL given." -1 -1 --stdout
exit 1 exit 1
fi fi
flags=("${doomPath}/keyshare-universal.pk3" '-join' "${ipAddress}") flags=("keyshare-universal.pk3" '-join' "${ipAddress}")
else else
# Get ip address # Get ip address
yourIpAddress="$(curl -4s https://icanhazip.com)" yourIpAddress="$(curl -4s https://icanhazip.com)"
@ -104,7 +104,7 @@ case ${buttonCode} in
--rangebox "Select difficulty. 1 easiest, 5 hardest." -1 -1 1 5 3 --stdout)" --rangebox "Select difficulty. 1 easiest, 5 hardest." -1 -1 1 5 3 --stdout)"
[[ $? -eq 1 ]] && exit 0 [[ $? -eq 1 ]] && exit 0
flags=( flags=(
"${doomPath}/keyshare-universal.pk3" "keyshare-universal.pk3"
'-host' "${players}" '-host' "${players}"
'-skill' "${skillLevel}" '-skill' "${skillLevel}"
'+set' 'sv_cheats' '1' '+set' 'sv_cheats' '1'