Game AudioQuake added.

This commit is contained in:
Storm Dragon 2021-04-26 23:21:26 -04:00
parent 750be8d169
commit e94353f71d

View File

@ -442,10 +442,6 @@ game_launcher() {
open_url "https://patreon.com/stormux" open_url "https://patreon.com/stormux"
exit 0 exit 0
fi fi
# for games that require custom scripts before launch
if [[ "$game" =~ sequence-storm ]]; then
[[ -x ~/.SequenceStormReader ]] && ~/.SequenceStormReader &
fi
local winePath="${game#*|}" local winePath="${game#*|}"
winePath="${winePath%\\*.exe}" winePath="${winePath%\\*.exe}"
local wineExec="${game#*|}" local wineExec="${game#*|}"
@ -464,6 +460,14 @@ game_launcher() {
fi fi
fi fi
export WINEPREFIX="${HOME}/.local/wine/${game%|*}" 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 # 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" [[ -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 if [[ -d "${WINEPREFIX}/drive_c/windows/syswow64" ]]; then
@ -529,6 +533,7 @@ gameList=(
"Adrian's Doom" "Adrian's Doom"
"Adventurers At C" "Adventurers At C"
"AudioDisc" "AudioDisc"
"AudioQuake"
"Battle of the Hunter" "Battle of the Hunter"
"Battle Zone" "Battle Zone"
"Beatstar Pro" "Beatstar Pro"
@ -680,6 +685,16 @@ case "${game}" in
unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/audiodisc.zip" unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/audiodisc.zip"
add_launcher "c:\Program Files\audiodisc\disco.exe" 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") "Battle of the Hunter")
export winVer="win7" export winVer="win7"
install_wine_bottle speechsdk install_wine_bottle speechsdk