diff --git a/linux-game-manager.sh b/linux-game-manager.sh index 24965fa..f3b9397 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -630,13 +630,12 @@ case "${game}" in fi doomPath="$(find /usr/share -type d -name "doom" 2> /dev/null | head -1)" download "https://www.dropbox.com/s/turlowrn2s3l191/TobyAccessibilityMod_Version${tobyVersion}.zip?dl=0" - if [[ ! -e "${doomPath}/TobyDeluxeMapPack_V${tobyVersion}.pk3" ]]; then - mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom" - cp "${doomPath}/gzdoom.ini" "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/" - grep -qx "Path=${doomPath}" "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/gzdoom.ini" || \ - sed -i "s;^\[IWADSearch.Directories\]$;[IWADSearch.Directories]\nPath=${doomPath};" "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/gzdoom.ini" - sed -i 's/Mouse1=+attack/Control+=attack/' "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/gzdoom.ini" - fi + sudo unzip -d "${doomPath}" "${cache}/TobyAccessibilityMod_Version${tobyVersion}.zip" + mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom" + cp "${doomPath}/gzdoom.ini" "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/" + grep -qx "Path=${doomPath}" "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/gzdoom.ini" || \ + sed -i "s;^\[IWADSearch.Directories\]$;[IWADSearch.Directories]\nPath=${doomPath};" "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/gzdoom.ini" + sed -i 's/Mouse1=+attack/Control+=attack/' "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/gzdoom.ini" # Unmodified Doom with accessibility. add_launcher "$(command -v gzdoom) ${doomPath}/TobyAccModV${tobyVersion%-*}.pk3" # Toby accessibility mods