Fix mod launcher for Doom to use the correct version.

This commit is contained in:
Storm Dragon 2023-09-21 21:32:38 -04:00
parent 0941a4ee40
commit e9171a7ea9

View File

@ -663,13 +663,13 @@ case "${game}" in
sed -i "s;^\[IWADSearch.Directories\]$;[IWADSearch.Directories]\nPath=${doomPath};" "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/gzdoom.ini"
sed -i 's/Mouse1=+attack/CTRL=+attack/' "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/gzdoom.ini"
# Unmodified Doom with accessibility.
add_launcher "$(command -v gzdoom) ${doomPath}/TobyAccModV${tobyVersion%-*}.pk3"
add_launcher "$(command -v gzdoom) ${doomPath}/TobyAccModV${tobyVersion}.pk3"
# Toby accessibility mods
game="Freedoom Toby Mod"
add_launcher "$(command -v gzdoom) ${doomPath}/TobyAccModV${tobyVersion%-*}.pk3" "${doomPath}/TobyDoomLevels.wad"
add_launcher "$(command -v gzdoom) ${doomPath}/TobyAccModV${tobyVersion}.pk3" "${doomPath}/TobyDoomLevels.wad"
# OperationMDK
game="Freedoom OperationMDK"
add_launcher "$(command -v gzdoom) ${doomPath}/TobyAccModV${tobyVersion%-*}.pk3" "${doomPath}/OpMDK.wad"
add_launcher "$(command -v gzdoom) ${doomPath}/TobyAccModV${tobyVersion}.pk3" "${doomPath}/OpMDK.wad"
;;
"Monkey Spank")
check_dependencies python-pygame:pygame python-xdg:xdg python-pyperclip:pyperclip python-requests:requests python-setproctitle:setproctitle