Added sox for audio support. Fixed a bug in Screaming Strike 2 installer.

This commit is contained in:
Storm Dragon 2021-06-30 21:58:41 -04:00
parent 039ae7dc96
commit d0bf910f45

View File

@ -203,6 +203,12 @@ checklist() {
errorList+=("Warning: qjoypad is not installed. Qjoypad allows you to play keyboard only games with a gamepad.") errorList+=("Warning: qjoypad is not installed. Qjoypad allows you to play keyboard only games with a gamepad.")
fi fi
packageList+=("qjoypad") 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 if command -v unix2dos &> /dev/null ; then
[[ $# -eq 0 ]] && echo "Dos2unix is installed." [[ $# -eq 0 ]] && echo "Dos2unix is installed."
else else
@ -780,6 +786,11 @@ gameList=(
#"World of War" #"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. # With no arguments, open the game launcher.
if [[ $# -eq 0 ]]; then if [[ $# -eq 0 ]]; then
game_launcher game_launcher
@ -979,7 +990,7 @@ case "${game}" in
;; ;;
"Breed Memorial") "Breed Memorial")
export winVer="win7" 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" 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" unzip -d "$WINEPREFIX/drive_c/Program Files/" "${cache}/breed_memorial.zip"
#find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \; #find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \;
@ -1446,7 +1457,7 @@ EOF
"Screaming Strike 2") "Screaming Strike 2")
export winVer="win7" export winVer="win7"
install_wine_bottle cjkfonts speechsdk 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" & wine "${cache}/screamingStrike2.exe" &
xdotool sleep 10 key Return xdotool sleep 10 key Return
wineserver -w wineserver -w