Added hunter.
This commit is contained in:
parent
f38190b670
commit
daf68adbe5
@ -380,6 +380,7 @@ gameList=(
|
|||||||
#"Entombed"
|
#"Entombed"
|
||||||
"Finger Panic"
|
"Finger Panic"
|
||||||
"Fuck That Bird"
|
"Fuck That Bird"
|
||||||
|
"Hunter"
|
||||||
"Kitchensinc Games"
|
"Kitchensinc Games"
|
||||||
"Kringle Crash"
|
"Kringle Crash"
|
||||||
"Light Cars"
|
"Light Cars"
|
||||||
@ -534,6 +535,50 @@ case "${game}" in
|
|||||||
unzip -d "$WINEPREFIX/drive_c/Program Files/fuck that bird" "${cache}/bird_en.zip"
|
unzip -d "$WINEPREFIX/drive_c/Program Files/fuck that bird" "${cache}/bird_en.zip"
|
||||||
add_launcher "c:\Program Files\fuck that bird/game.exe"
|
add_launcher "c:\Program Files\fuck that bird/game.exe"
|
||||||
;;
|
;;
|
||||||
|
"Hunter")
|
||||||
|
install_wine_bottle vb6run dx8vb
|
||||||
|
# FIXME: Hacky, but it works. Install dotnet35 by itself so it actually doesn't hang.
|
||||||
|
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
|
||||||
|
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"
|
||||||
|
test command -v unix2dos &> /dev/null && unix2dos "$WINEPREFIX/drive_c/Program Files/Hunter/config.dat" || echo "Warning! You do not have unix2dos or dos2unix installed, Hunter may not work!"
|
||||||
|
if command -v xclip &> /dev/null && command -v xdotool &> /dev/null ; then
|
||||||
|
wine "c:\Program Files\Hunter\HunterRegistration.exe" &
|
||||||
|
xdotool sleep 10 key Return sleep 2 key Return sleep 2 key Alt+n
|
||||||
|
sleep 1
|
||||||
|
regcode="$(xclip -selection clipboard -o)"
|
||||||
|
xdotool sleep 1 key Shift+Tab sleep 1 key Return
|
||||||
|
# FIXME: Kind of hacky, but let's make sure it actually exitted.
|
||||||
|
sleep 5
|
||||||
|
wineserver -k
|
||||||
|
wine "c:\Program Files\bsc-key-generator\BlindsoftwareUnlockCodeGenerator.exe" &
|
||||||
|
xdotool sleep 10 key Return sleep 2 type hu
|
||||||
|
xdotool sleep 1 key Tab sleep 1 type $regcode
|
||||||
|
xdotool sleep 1 key Tab sleep 1 key Return
|
||||||
|
sleep 2
|
||||||
|
regcode="$(xclip -selection clipboard -o)" # Might as well reuse the variable.
|
||||||
|
# FIXME: Kind of hacky, but let's make sure it actually exitted since I can't find a good way to exit this program.
|
||||||
|
sleep 5
|
||||||
|
wineserver -k
|
||||||
|
wine "c:\Program Files\Hunter\HunterRegistration.exe" &
|
||||||
|
echo "$regcode" | xclip -selection clipboard
|
||||||
|
xdotool sleep 10 key Return sleep 2 key Shift+Tab sleep 1 key Shift+Tab sleep 1 key Return
|
||||||
|
# FIXME: Kind of hacky, but let's make sure it actually exitted.
|
||||||
|
sleep 5
|
||||||
|
wineserver -k
|
||||||
|
else
|
||||||
|
echo "Warning: You need xclip and xdotool for this installer to finish the registration process, however, you don't have them. Either remove the program, install the stated tools, and reinstall it, or go on your own. Caveat Emptor, go to jail, do not pass go, do not collect audiogame rewards and all that stuff."
|
||||||
|
fi
|
||||||
|
add_launcher "c:\Program Files\Hunter\HunterRun.exe"
|
||||||
|
;;
|
||||||
"Kringle Crash")
|
"Kringle Crash")
|
||||||
install_wine_bottle
|
install_wine_bottle
|
||||||
download "https://www.agarchive.net/games/blastbay/kringle%20crash%20setup.exe"
|
download "https://www.agarchive.net/games/blastbay/kringle%20crash%20setup.exe"
|
||||||
|
Loading…
Reference in New Issue
Block a user