Fix conjury installer and updater to work with both 64 and 32 bit versions of the game, as it seems 64 bit was switched for 32 bit in the latest release. Please watch for bugs.

This commit is contained in:
Michael Taboada 2023-12-03 06:27:54 -08:00
parent a3f84d2db6
commit 23627322dd
2 changed files with 9 additions and 2 deletions

View File

@ -1951,12 +1951,13 @@ download "https://erion.cf/files/ag_103.zip"
add_launcher "c:\Program Files\coin collector\game.exe"
;;
"Conjury")
download "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd64.dll"
download "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd64.dll" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll"
export WINEARCH=win64
export winVer="win8"
install_wine_bottle
get_steam 2684520 "https://store.steampowered.com/app/2684520/Conjury/"
find "$WINEPREFIX" -type f -name 'nvdaControllerClient.dll' -exec cp -v "$cache/nvda2speechd64.dll" "{}" \;
find "$WINEPREFIX/drive_c/Program Files/Conjury" -type f -path '*/x86_64/nvdaControllerClient.dll' -exec cp -v "$cache/nvda2speechd64.dll" "{}" \;
find "$WINEPREFIX/drive_c/Program Files/Conjury" -type f -path '*/x86/nvdaControllerClient.dll' -exec cp -v "$cache/nvda2speechd32.dll" "{}" \;
add_launcher 'c:\Program Files\Conjury\release\Conjury.exe'
;;
"Constant Battle")

View File

@ -47,7 +47,13 @@ source "${sourcePath}"
export game="Conjury"
export WINEPREFIX="$HOME/.local/wine/conjury"
# Make sure both nvda2speechd 64 and 32 bit are available.
# This is needed to work around the change from 64 bit to 32 bit game.
download "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd64.dll" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll"
# Now it should be as simple as running get_steam to redownload the game.
get_steam 2684520 "https://store.steampowered.com/app/2684520/Conjury/"
find "$WINEPREFIX/drive_c/Program Files/Conjury" -type f -path '*/x86_64/nvdaControllerClient.dll' -exec cp -v "$cache/nvda2speechd64.dll" "{}" \;
find "$WINEPREFIX/drive_c/Program Files/Conjury" -type f -path '*/x86/nvdaControllerClient.dll' -exec cp -v "$cache/nvda2speechd32.dll" "{}" \;
exit 0