From 309edacf319d7925346e432af84eecbef49ee9bd Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 26 Oct 2022 18:15:07 -0400 Subject: [PATCH] Hopefully fix up the gzdoom.ini file so it will launch, and try to make sure that control will fire the weapon. --- linux-game-manager.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-game-manager.sh b/linux-game-manager.sh index 4e91c49..7cc1a6a 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -527,6 +527,9 @@ case "${game}" in if sudo unzip -d "/usr/share/games/doom" "${cache}/Toby Acc Mod V5-1 Update Fix.zip" ; then mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom" cp /usr/share/games/doom/gzdoom.ini "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/" + grep -qx 'Path=/usr/share/games/doom' "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/gzdoom.ini" || \ + sed -i 's;^\[IWADSearch.Directories\]$;[IWADSearch.Directories]\nPath=/usr/share/games/doom;' "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/gzdoom.ini" + sed 's/Mouse1=+attack/Control+=attack/' "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/gzdoom.ini" else dialog --backtitle "Linux Game Manager" \ --msgbox "Unable to extract files to /usr/share/games/doom. Please extract ${cache}/Toby Acc Mod V5-1 Update Fix.zip manually."