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=(
# Unmodified Doom with accessibility.
"${doomPath}/TobyAccMod_V${tobyVersion}.pk3" "Freedoom"
"TobyAccMod_V${tobyVersion}.pk3" "Freedoom"
# 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
"${doomPath}/TobyAccMod_V${tobyVersion}.pk3 ${doomPath}/OpMDK.wad" "Freedoom OperationMDK"
"TobyAccMod_V${tobyVersion}.pk3 OpMDK.wad" "Freedoom OperationMDK"
)
grepStrings=(
@ -55,7 +55,7 @@ gameOption="$(dialog --backtitle "Select your Doom!" \
--menu "Please select one" 0 0 0 "${doomGames[@]}" --stdout)"
buttonCode=$?
if [[ -e "${doomPath}/DoomMetalVol6.wad" ]]; then
gameOption+=" ${doomPath}/DoomMetalVol6.wad"
gameOption+=" DoomMetalVol6.wad"
fi
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
exit 1
fi
flags=("${doomPath}/keyshare-universal.pk3" '-join' "${ipAddress}")
flags=("keyshare-universal.pk3" '-join' "${ipAddress}")
else
# Get ip address
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)"
[[ $? -eq 1 ]] && exit 0
flags=(
"${doomPath}/keyshare-universal.pk3"
"keyshare-universal.pk3"
'-host' "${players}"
'-skill' "${skillLevel}"
'+set' 'sv_cheats' '1'