Move the BK3 setup over to 7zip instead of using wine and xdotool.

This commit is contained in:
Storm Dragon 2022-10-06 15:30:09 -04:00
parent a2cce62b1f
commit 190a97087a

View File

@ -1655,12 +1655,7 @@ case "${game}" in
export winVer="win7" export winVer="win7"
install_wine_bottle install_wine_bottle
download "https://www.nyanchangames.com/softs/nn3_setup.exe" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll" download "https://www.nyanchangames.com/softs/nn3_setup.exe" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll"
wine "$cache/nn3_setup.exe" & 7z x -o"$WINEPREFIX/drive_c/nyanchangame/bk3" "${cache}/nn3_setup.exe"
xdotool sleep 10 key --clearmodifiers --delay=75 ctrl+a
xdotool sleep 1 key --clearmodifiers --delay=75 BackSpace
xdotool sleep 1 type --delay=75 'c:\nyanchangame\bk3'
xdotool sleep 1 key --clearmodifiers --delay=75 Return
wineserver -w
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"
;; ;;