Light Cars installer works again.

This commit is contained in:
Storm Dragon 2020-12-31 12:54:01 -05:00
parent d348a879e5
commit 6d2eedb0fe

View File

@ -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