Merge branch 'testing' latest games and fixes.

This commit is contained in:
Storm Dragon 2022-10-30 14:46:35 -04:00
commit c5d88f5215

View File

@ -320,6 +320,7 @@ download() {
for i in "${source[@]}" ; do for i in "${source[@]}" ; do
local dest="${i##*/}" local dest="${i##*/}"
dest="${dest//%20/ }" dest="${dest//%20/ }"
dest="${dest%\?*}"
# Remove the destination file if it is empty. # Remove the destination file if it is empty.
test -s "${cache}/${dest}" || rm -f "${cache}/${dest}" 2> /dev/null test -s "${cache}/${dest}" || rm -f "${cache}/${dest}" 2> /dev/null
if [[ "${redownload}" == "true" ]] && [[ -e "${cache}/${dest}" ]]; then if [[ "${redownload}" == "true" ]] && [[ -e "${cache}/${dest}" ]]; then
@ -796,11 +797,14 @@ game_launcher() {
fi fi
pgrep -u "$USER" nvda2speechd &> /dev/null || ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd & pgrep -u "$USER" nvda2speechd &> /dev/null || ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd &
fi fi
if [[ ! -d "${dictPath}/dict" ]]; then if [[ ! -d "${dictPath}/dict" ]] && [[ ! -r "${cache}/bk3-dict.dat" ]]; then
find "${WINEPREFIX}/drive_c/nyanchangame/bk3" -type f -name 'nvdaControllerClient.dll' -exec rm -v "{}" \; find "${WINEPREFIX}/drive_c/nyanchangame/bk3" -type f -name 'nvdaControllerClient.dll' -exec rm -v "{}" \;
"${0%/*}/speech/clipboard_translator.sh" play.exe & "${0%/*}/speech/clipboard_translator.sh" play.exe &
fi fi
fi fi
if [[ "$game" =~ bop-it-emulator ]]; then
"${0%/*}/speech/speak_window_title.sh" bop.exe &
fi
if [[ "$game" =~ road-to-rage\| ]]; then if [[ "$game" =~ road-to-rage\| ]]; then
"${0%/*}/speech/speak_window_title.sh" trtr.exe & "${0%/*}/speech/speak_window_title.sh" trtr.exe &
fi fi
@ -910,9 +914,6 @@ unset noCache
# Manual installation is not default, make sure it's unset # Manual installation is not default, make sure it's unset
unset manualInstall unset manualInstall
# Set up logging
echo -e "\n\n-----> Logging started at $(date '+%A, %B %d, %Y at %I:%M%p')\n" >> "${cache}/audiogame-manager.log"
exec &> >(command tee -a "${cache}/audiogame-manager.log")
# The list of games available for installation. # The list of games available for installation.
# Use menu friendly names. # Use menu friendly names.
@ -977,6 +978,7 @@ gameList=(
"Bokurano Daibouken 2" "Bokurano Daibouken 2"
"Bokurano Daibouken 3" "Bokurano Daibouken 3"
"Bombercats" "Bombercats"
"Bop It Emulator"
#"Breed Memorial" #"Breed Memorial"
"Castaways" "Castaways"
"Castaways 2" "Castaways 2"
@ -985,6 +987,7 @@ gameList=(
#"Chopper Challenge" #"Chopper Challenge"
"Christmas WhoopAss" "Christmas WhoopAss"
"Code Dungeon" "Code Dungeon"
"Coin Collector"
#"Constant Battle" #"Constant Battle"
"Copter Mission" "Copter Mission"
"Crazy Party" "Crazy Party"
@ -1667,6 +1670,13 @@ case "${game}" in
find "${WINEPREFIX}" -type f -name 'nvdaControllerClient.dll' -exec cp -v "${cache}/nvda2speechd32.dll" "{}" \; find "${WINEPREFIX}" -type f -name 'nvdaControllerClient.dll' -exec cp -v "${cache}/nvda2speechd32.dll" "{}" \;
add_launcher "c:\nyanchangame\bk3\play.exe" add_launcher "c:\nyanchangame\bk3\play.exe"
;; ;;
"Bop It Emulator")
export winVer="win7"
install_wine_bottle
download "http://www.masonasons.me/softs/BopItEmulator3.1PasswordIsBopIt.7z"
7z x -o"$WINEPREFIX/drive_c/Program Files/Bop It" "${cache}/BopItEmulator3.1PasswordIsBopIt.7z" -pBopIt
add_launcher "c:\Program Files\Bop It\bop.exe"
;;
"Bombercats") "Bombercats")
export bottle="oriol-gomez" export bottle="oriol-gomez"
export winVer="win7" export winVer="win7"
@ -1727,6 +1737,15 @@ case "${game}" in
echo "$USER|n/a" >> "$WINEPREFIX/drive_c/Program Files/x-sight interactive/chopper challenge/config.dat" echo "$USER|n/a" >> "$WINEPREFIX/drive_c/Program Files/x-sight interactive/chopper challenge/config.dat"
add_launcher "c:\Program Files\x-sight interactive\chopper challenge\Chopper.exe" add_launcher "c:\Program Files\x-sight interactive\chopper challenge\Chopper.exe"
;; ;;
"Coin Collector")
export WINEARCH=win64
export winVer="win7"
download "https://www.dropbox.com/s/v55q7t9n84otmcd/coin%20collector.rar?dl=1" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd64.dll"
install_wine_bottle
unrar x "$cache/coin collector.rar" -op"$WINEPREFIX/drive_c/Program Files"
find "$WINEPREFIX/drive_c/Program Files/coin collector" -type f -name "nvdaControllerClient64.dll" -exec cp -v "$cache/nvda2speechd64.dll" "{}" \;
add_launcher "c:\Program Files\coin collector\game.exe"
;;
"Constant Battle") "Constant Battle")
export winVer="win7" export winVer="win7"
install_wine_bottle cjkfonts speechsdk install_wine_bottle cjkfonts speechsdk