From e94353f71d794d067c10cfe969bf8f5eefd4aab7 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 26 Apr 2021 23:21:26 -0400 Subject: [PATCH] Game AudioQuake added. --- audiogame-manager.sh | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 1954048..c3542c0 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -442,10 +442,6 @@ game_launcher() { open_url "https://patreon.com/stormux" exit 0 fi - # for games that require custom scripts before launch - if [[ "$game" =~ sequence-storm ]]; then - [[ -x ~/.SequenceStormReader ]] && ~/.SequenceStormReader & - fi local winePath="${game#*|}" winePath="${winePath%\\*.exe}" local wineExec="${game#*|}" @@ -464,6 +460,14 @@ game_launcher() { fi fi export WINEPREFIX="${HOME}/.local/wine/${game%|*}" + # for games that require custom scripts before launch or custom launch parameters + if [[ "$game" =~ sequence-storm ]]; then + [[ -x ~/.SequenceStormReader ]] && ~/.SequenceStormReader & + fi + if [[ "$game" =~ audioquake ]]; then + wine "$winePath\\$wineExec" + exit 0 + fi # Work around possible wrong path for start.exe [[ -e "${WINEPREFIX}/drive_c/windows/system32/start.exe" ]] || ln -sr "${WINEPREFIX}/drive_c/windows/command/start.exe" "${WINEPREFIX}/drive_c/windows/system32/start.exe" if [[ -d "${WINEPREFIX}/drive_c/windows/syswow64" ]]; then @@ -529,6 +533,7 @@ gameList=( "Adrian's Doom" "Adventurers At C" "AudioDisc" + "AudioQuake" "Battle of the Hunter" "Battle Zone" "Beatstar Pro" @@ -680,6 +685,16 @@ case "${game}" in unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/audiodisc.zip" add_launcher "c:\Program Files\audiodisc\disco.exe" ;; + "AudioQuake") + export winVer="win7" + install_wine_bottle speechsdk + download "https://github.com/matatk/agrip/releases/download/2020.0-beta1/AudioQuake+LDL_2020.0-beta1_Windows.zip" "https://stormgames.wolfe.casa/downloads/quake.zip" + unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/AudioQuake+LDL_2020.0-beta1_Windows.zip" + unzip -d "$WINEPREFIX/drive_c/Program Files/AudioQuake/id1" "${cache}/quake.zip" + add_launcher "c:\Program Files\AudioQuake\AudioQuake.exe" + echo + echo "After you launch the game, press tab then enter and it should begin speaking." + ;; "Battle of the Hunter") export winVer="win7" install_wine_bottle speechsdk