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
pgrep -u "$USER" nvda2speechd &> /dev/null || ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd &
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
"${0%/*}/speech/clipboard_translator.sh" play.exe bokurano-daibouken2 &
fi
@ -978,7 +981,7 @@ gameList=(
"Duck Hunt"
"DynaMan"
"Easter Quest"
#"Endless Runner"
"Endless Runner"
"Entombed"
"ESP Pinball Classic"
"ESP Pinball Extreme"
@ -1000,7 +1003,7 @@ gameList=(
"Kitchensinc Games"
"Kringle Crash"
#"Laser Breakout"
#"Light Battles"
"Light Battles"
"Light Cars"
"Lockpick"
"Lone Wolf"
@ -2155,16 +2158,16 @@ EOF
export winVer="win7"
install_wine_bottle
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" "{}" \;
add_launcher "c:\nyanchangame\laser breakout\play.exe"
;;
"Light Battles")
export winVer="win7"
install_wine_bottle speechsdk
download "https://prometheus-enterprises.com/games/CoL.exe"
install_wine_bottle
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"
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"
;;
"Light Cars")
@ -2230,7 +2233,7 @@ EOF
export bottle="nyanchan"
export winVer="win7"
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" &
xdotool sleep 10 key Return
wineserver -w