diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 0e5d738..6f2db07 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -250,7 +250,7 @@ download() { dest="${dest//%20/ }" # Return if the game is in cache. test -e "${cache}/${dest}" && return - if ! wget -O "${cache}/${dest}" "${i}" ; then + if ! wget -4 -O "${cache}/${dest}" "${i}" ; then echo "Could not download game." exit 1 fi @@ -863,7 +863,7 @@ EOF install_wine_bottle dx8vb vb6run download "https://www.agarchive.net/games/lighttech/light%20cars%20setup.exe" wine "${cache}/light cars setup.exe" & - xdotool sleep 10 key --clearmodifiers alt+n sleep 1 key --clearmodifiers alt+a key --clearmodifiers space sleep 1 key --clearmodifiers alt+n sleep 1 key --clearmodifiers alt+n sleep 1 key --clearmodifiers alt+i sleep 30 key --clearmodifiers alt+f + xdotool sleep 10 key --clearmodifiers alt+n sleep 1 key --clearmodifiers alt+a key --clearmodifiers space sleep 1 key --clearmodifiers alt+n sleep 1 key --clearmodifiers alt+n sleep 1 key --clearmodifiers alt+i sleep 30 key --clearmodifiers Tab sleep 1 key --clearmodifiers Return 2> /dev/null wineserver -w echo -e "${USER} ${HOST}\nna@na.na\nUS" > ~/.local/wine/light-cars/drive_c/Program\ Files/Lighttech\ Interactive/Light\ Cars/config.dat unix2dos ~/.local/wine/light-cars/drive_c/Program\ Files/Lighttech\ Interactive/Light\ Cars/config.dat