From 28dac62907b8678b480ba382ee0933ec5b9a5736 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 12 Nov 2023 13:45:31 -0500 Subject: [PATCH] Use the new menu system. Unzip no longer overwrites existing files. --- linux-game-manager.sh | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/linux-game-manager.sh b/linux-game-manager.sh index c0b6dc0..87a08b5 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -675,8 +675,8 @@ case "${game}" in echo "The next step may require your password." echo "It is necessary to places the extracted files in their proper place." alert - sudo unzip -d "${doomPath}" "${cache}/TobyAccessibilityMod_Version${tobyVersion}.zip" - sudo unzip -d "${doomPath}" "${cache}/OperationMDK.zip" + sudo unzip -n -d "${doomPath}" "${cache}/TobyAccessibilityMod_Version${tobyVersion}.zip" + sudo unzip -n -d "${doomPath}" "${cache}/OperationMDK.zip" sudo cp -v "${cache}/keyshare-universal.pk3" "${doomPath}" sudo rm -fv "${doomPath}/"*.lnk mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom" @@ -684,14 +684,9 @@ case "${game}" in 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/CTRL=+attack/' "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/gzdoom.ini" - # Unmodified Doom with accessibility. - add_launcher "$(command -v gzdoom) ${doomPath}/TobyAccMod_V${tobyVersion}.pk3" - # Toby accessibility mods - game="Freedoom Toby Mod" - add_launcher "$(command -v gzdoom) ${doomPath}/TobyAccMod_V${tobyVersion}.pk3" "${doomPath}/TobyDoomLevels.wad" - # OperationMDK - game="Freedoom OperationMDK" - add_launcher "$(command -v gzdoom) ${doomPath}/TobyAccMod_V${tobyVersion}.pk3" "${doomPath}/OpMDK.wad" + launcherPath="$(readlink -f "$0")" + launcherPath="${launcherPath%/*}" + add_launcher "${launcherPath}/.scripts/FreeDoom.sh" ;; "Monkey Spank") check_dependencies python-pygame:pygame python-xdg:xdg python-pyperclip:pyperclip python-requests:requests python-setproctitle:setproctitle