From c59918f6f4cebd65bf29fb7f6f4c83fed28c07a4 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Fri, 18 Jun 2021 15:26:41 -0400 Subject: [PATCH] added BG LAP. Hopefully fixed a critical bug that would erase the whole menu. --- audiogame-manager.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 017e2fa..c94533c 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -469,11 +469,11 @@ game_removal() { get_bottle "${game%|*}" read -rp "To remove the wine bottle \"${WINEPREFIX##*/}\" and all of its contents press enter. To cancel press control+c. " continue # kill any previous existing wineservers for this prefix in case they didn't shut down properly. - WINEPREFIX="${HOME}/.local/wine/${bottle}" wineserver -k + wineserver -k # remove the game - rm -rf "${HOME}/.local/wine/${bottle}" + rm -rf "${WINEPREFIX}" # remove the launcher - gawk -i inplace -vLine="${bottle//\\/\\\\}" '!index($0,Line)' "$configFile" + gawk -i inplace -vLine="${WINEPREFIX//\\/\\\\}" '!index($0,Line)' "$configFile" echo "The selected wine bottle has been deleted." fi exit 0 @@ -664,6 +664,7 @@ gameList=( "BG Free Cell Solitaire" "BG Hearts" "BG Klondike Solitaire" + "BG LAP" "BG Mine Sweeper" "BG Penguin Solitaire" "BG Scorpion Solitaire" @@ -892,6 +893,14 @@ case "${game}" in wine "${cache}/${bgInstaller}" /silent add_launcher "c:\Program Files\Games\HeartsB\HeartsB.exe" ;; + "BG LAP") + bgInstaller="LAP32Setup10.exe" + export bottle="bg" + get_installer "${bgInstaller}" + install_wine_bottle speechsdk + wine "${cache}/${bgInstaller}" /silent + add_launcher "c:\Program Files\Games\LAP\LAP.exe" + ;; "BG Mine Sweeper") bgInstaller="MSB32Setup10.exe" export bottle="bg"