From e7e14886adfd0590d8df33c3e6f9b37fa7a79ee5 Mon Sep 17 00:00:00 2001 From: Michael Taboada Date: Thu, 30 Nov 2023 14:35:40 -0800 Subject: [PATCH] Hopefully fixed gzdoom installer for slint, and in future void. --- linux-game-manager.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linux-game-manager.sh b/linux-game-manager.sh index 19ff898..7fc1220 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -665,7 +665,7 @@ case "${game}" in download_named "keyshare-universal.pk3" "https://forum.zdoom.org/download/file.php?id=42262" download "https://www.dropbox.com/s/uf01fx3vydua6zx/TobyAccessibilityMod_Version${tobyVersion}.zip?dl=0" "https://www.dropbox.com/scl/fi/bac94s01bl31p6e73pbof/OperationMDK.zip?rlkey=6ufdqgyacakqz6ulr2cue6rtm&dl=1" echo "The next step may require your password." - echo "It is necessary to places the extracted files in their proper place." + echo "It is necessary to move the extracted files into their proper place." alert [[ -e "${cache}/Doom_Metal_Volume_6_v2.rar" ]] && sudo 7z x -o"${doomPath}" "${cache}/Doom_Metal_Volume_6_v2.rar" sudo unzip -n -d "${doomPath}" "${cache}/TobyAccessibilityMod_Version${tobyVersion}.zip" @@ -674,8 +674,9 @@ case "${game}" in sudo rm -fv "${doomPath}/"*.lnk 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;^\[FileSearch.Directories\]$;[FileSearch.Directories]\nPath=${doomPath};" "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/gzdoom.ini" + sed -i "s;^\[SoundfontSearch.Directories\]$;[SoundfontSearch.Directories]\nPath=${doomPath}/fm_banks\nPath=${doomPath}/soundfonts;" "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/gzdoom.ini" sed -i 's/Mouse1=+attack/CTRL=+attack/' "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/gzdoom.ini" launcherPath="$(readlink -f "$0")" launcherPath="${launcherPath%/*}"