From d0bf910f45ea6528819988690ea521f85e38cddf Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 30 Jun 2021 21:58:41 -0400 Subject: [PATCH] Added sox for audio support. Fixed a bug in Screaming Strike 2 installer. --- audiogame-manager.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index f84f86d..e6e0633 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -203,6 +203,12 @@ checklist() { errorList+=("Warning: qjoypad is not installed. Qjoypad allows you to play keyboard only games with a gamepad.") fi packageList+=("qjoypad") + if command -v sox &> /dev/null ; then + [[ $# -eq 0 ]] && echo "Sox is installed." + else + errorList+=("Warning: Sox is not installed. Audio will not work.") + fi + packageList+=("sox") if command -v unix2dos &> /dev/null ; then [[ $# -eq 0 ]] && echo "Dos2unix is installed." else @@ -780,6 +786,11 @@ gameList=( #"World of War" ) +# Make sure sox is installed +if ! command -v sox &> /dev/null ; then + echo "Please install sox before continuing." + exit 1 +fi # With no arguments, open the game launcher. if [[ $# -eq 0 ]]; then game_launcher @@ -979,7 +990,7 @@ case "${game}" in ;; "Breed Memorial") export winVer="win7" - install_wine_bottle corefonts speechsdk + install_wine_bottle cjkfonts speechsdk download "https://hirotaka2014.sakura.ne.jp/mh0406/game/breed_memorial.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" unzip -d "$WINEPREFIX/drive_c/Program Files/" "${cache}/breed_memorial.zip" #find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \; @@ -1446,7 +1457,7 @@ EOF "Screaming Strike 2") export winVer="win7" install_wine_bottle cjkfonts speechsdk - download "https://www.nyanchangames.com/softs/screamingStrike2.exe" + download "https://www.nyanchangames.com/softs/screamingStrike2.exe" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" wine "${cache}/screamingStrike2.exe" & xdotool sleep 10 key Return wineserver -w