diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 179695b..42e8ac1 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -1478,13 +1478,23 @@ download "https://erion.cf/files/ag_103.zip" alert ;; "Balatro") - download "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd64.dll" "https://stormgames.wolfe.casa/downloads/Tolk.dll" + download "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd64.dll" "https://stormgames.wolfe.casa/downloads/Tolk.dll" "https://github.com/Aurelius7309/BlackHole/releases/download/0.3.1/BlackHole-Release.zip" export WINEARCH=win64 export winVer="win10" install_wine_bottle get_steam "2379780" "https://store.steampowered.com/app/2379780/Balatro/" - find "$WINEPREFIX/drive_c/Program Files/Balatro" -type f -name 'nvdaControllerClient64.dll' -exec cp -v "$cache/nvda2speechd64.dll" "{}" \; - find "$WINEPREFIX/drive_c/Program Files/Balatro" -type f -name 'tolk.dll' -exec cp -v "$cache/Tolk.dll" "{}" \; + mkdir -p "$WINEPREFIX/drive_c/users/$USER/AppData/Roaming/Balatro/Mods" + unzip -d "$WINEPREFIX/drive_c/users/$USER/AppData/Roaming/Balatro" "$cache/BlackHole-Release.zip" + pushd "$WINEPREFIX/drive_c/users/$USER/AppData/Roaming/Balatro/Mods" + (cat mod_urls.txt ; echo) | while read -r x ; do + git clone "$x" + done + cp -v BlackHole/bin/*.dll "$WINEPREFIX/drive_c/Program Files/Balatro" + cp -v "$cache/Tolk.dll" "$WINEPREFIX/drive_c/Program Files/Balatro/tolk.dll" + cp -v "$cache/Tolk.dll" BlackHole/bin/tolk.dll + cp -v "$cache/nvda2speechd64.dll" "$WINEPREFIX/drive_c/Program Files/Balatro/nvdaControllerClient64.dll" + cp -v "$cache/nvda2speechd64.dll" BlackHole/bin/nvdaControllerClient64.dll + cp -v ../version.dll "$WINEPREFIX/drive_c/Program Files/Balatro" add_launcher 'c:\Program Files\Balatro\Balatro.exe' 'export WINEDLLOVERRIDES=version=n,b' ;; "Battlefield 2D")