diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 26a2bf3..3a6d0d7 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -538,11 +538,9 @@ case "${game}" in winetricks -q dotnet35 wineserver -k # Damn you, dotnet. download "http://www.agarchive.net/games/bsc/HunterSetup.exe" "https://www.agarchive.net/games/bsc/BSC%20unlock%20code%20generator.7z" - if command -v xdotool &> /dev/null ; then - wine "${cache}/HunterSetup.exe" /silent | xdotool sleep 10 key alt+y --clearmodifiers - else - wine "${cache}/HunterSetup.exe" /silent - fi + wine "${cache}/HunterSetup.exe" /silent & + xdotool sleep 10 key alt+y --clearmodifiers 2> /dev/null + wineserver -w mkdir -p "$WINEPREFIX/drive_c/Program Files/bsc-key-generator" 7z e -o"$WINEPREFIX/drive_c/Program Files/bsc-key-generator" "${cache}/BSC unlock code generator.7z" echo "$USER"$'\n'"$(hostname)"$'\n'"none"$'\n'"US" > "$WINEPREFIX/drive_c/Program Files/Hunter/config.dat"