Updated Hunter installation code.
This commit is contained in:
parent
7254b70112
commit
9566babe70
@ -538,11 +538,9 @@ case "${game}" in
|
|||||||
winetricks -q dotnet35
|
winetricks -q dotnet35
|
||||||
wineserver -k # Damn you, dotnet.
|
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"
|
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 &
|
||||||
wine "${cache}/HunterSetup.exe" /silent | xdotool sleep 10 key alt+y --clearmodifiers
|
xdotool sleep 10 key alt+y --clearmodifiers 2> /dev/null
|
||||||
else
|
wineserver -w
|
||||||
wine "${cache}/HunterSetup.exe" /silent
|
|
||||||
fi
|
|
||||||
mkdir -p "$WINEPREFIX/drive_c/Program Files/bsc-key-generator"
|
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"
|
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"
|
echo "$USER"$'\n'"$(hostname)"$'\n'"none"$'\n'"US" > "$WINEPREFIX/drive_c/Program Files/Hunter/config.dat"
|
||||||
|
Loading…
Reference in New Issue
Block a user