Fix some bugs, light battles and endless runner now working

This commit is contained in:
Michael Taboada 2023-01-22 10:55:24 -08:00
parent fbdae7409e
commit 1fce98d135

View File

@ -748,6 +748,9 @@ game_launcher() {
if [[ "$game" =~ laser-breakout ]]; then if [[ "$game" =~ laser-breakout ]]; then
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 [[ "$game" =~ light-battles ]]; then
pgrep -u "$USER" nvda2speechd &> /dev/null || ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd &
fi
if [[ "$game" =~ ^bokurano-daibouken-2\| ]]; then if [[ "$game" =~ ^bokurano-daibouken-2\| ]]; then
"${0%/*}/speech/clipboard_translator.sh" play.exe bokurano-daibouken2 & "${0%/*}/speech/clipboard_translator.sh" play.exe bokurano-daibouken2 &
fi fi
@ -978,7 +981,7 @@ gameList=(
"Duck Hunt" "Duck Hunt"
"DynaMan" "DynaMan"
"Easter Quest" "Easter Quest"
#"Endless Runner" "Endless Runner"
"Entombed" "Entombed"
"ESP Pinball Classic" "ESP Pinball Classic"
"ESP Pinball Extreme" "ESP Pinball Extreme"
@ -1000,7 +1003,7 @@ gameList=(
"Kitchensinc Games" "Kitchensinc Games"
"Kringle Crash" "Kringle Crash"
#"Laser Breakout" #"Laser Breakout"
#"Light Battles" "Light Battles"
"Light Cars" "Light Cars"
"Lockpick" "Lockpick"
"Lone Wolf" "Lone Wolf"
@ -2155,16 +2158,16 @@ EOF
export winVer="win7" export winVer="win7"
install_wine_bottle install_wine_bottle
download "https://www.agarchive.net/games/nyanchan/laser%20breakout.7z" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll" download "https://www.agarchive.net/games/nyanchan/laser%20breakout.7z" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll"
7z x -o"$WINEPREFIX/drive_c/nyanchangame/laser breakout" "$cache/laser breakout.7z" 7z x -o"$WINEPREFIX/drive_c/nyanchangame/" "$cache/laser breakout.7z"
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\laser breakout\play.exe" add_launcher "c:\nyanchangame\laser breakout\play.exe"
;; ;;
"Light Battles") "Light Battles")
export winVer="win7" export winVer="win7"
install_wine_bottle speechsdk install_wine_bottle
download "https://prometheus-enterprises.com/games/CoL.exe" download "https://prometheus-enterprises.com/games/CoL.exe" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll"
7z x -o"$WINEPREFIX/drive_c/Program Files/Light Battles" "${cache}/CoL.exe" 7z x -o"$WINEPREFIX/drive_c/Program Files/Light Battles" "${cache}/CoL.exe"
rm -fv "${WINEPREFIX}/drive_c/Program Files/Light Battles/nvdaControllerClient.dll" find "${WINEPREFIX}" -type f -name "nvdaControllerClient.dll" -exec cp -v "$cache/nvda2speechd32.dll" "{}" \;
add_launcher "c:\Program Files\Light Battles\battles.exe" add_launcher "c:\Program Files\Light Battles\battles.exe"
;; ;;
"Light Cars") "Light Cars")
@ -2230,7 +2233,7 @@ EOF
export bottle="nyanchan" export bottle="nyanchan"
export winVer="win7" export winVer="win7"
install_wine_bottle speechsdk install_wine_bottle speechsdk
download "https://www.nyanchangames.com/softs/MbSetupE.exe" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd64.dll" download "https://www.nyanchangames.com/softs/MbSetupE.exe" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll"
wine "${cache}/MbSetupE.exe" & wine "${cache}/MbSetupE.exe" &
xdotool sleep 10 key Return xdotool sleep 10 key Return
wineserver -w wineserver -w