Merged to master.
This commit is contained in:
commit
bdeef5b367
@ -49,7 +49,7 @@ export DIALOGOPTS='--no-lines --visit-items'
|
|||||||
# Automatic update function
|
# Automatic update function
|
||||||
update() {
|
update() {
|
||||||
local filePath="$(command -v ${0})"
|
local filePath="$(command -v ${0})"
|
||||||
if file "${filePath}" | grep -q 'Bourne-Again shell script,' ; then
|
if file "${filePath}" | grep -q 'Bourne-Again shell script' ; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
# make sure the site can be reached
|
# make sure the site can be reached
|
||||||
@ -93,15 +93,16 @@ write_sequence_storm_reader() {
|
|||||||
# Here-document start
|
# Here-document start
|
||||||
cat << "EOF" > ~/.SequenceStormReader
|
cat << "EOF" > ~/.SequenceStormReader
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Wait for the game to be launched
|
# Wait for the game to be launched
|
||||||
while ! pgrep -u $USER ^SequenceStorm &> /dev/null ; do
|
while ! pgrep -u "$USER" ^SequenceStorm &> /dev/null ; do
|
||||||
sleep 0.05
|
sleep 0.05
|
||||||
done
|
done
|
||||||
|
|
||||||
export DISPLAY=:0
|
export DISPLAY=:0
|
||||||
unset cliptext
|
unset cliptext
|
||||||
while pgrep -u $USER ^SequenceStorm &> /dev/null ; do
|
socketFile="$(find /tmp -maxdepth 1 -name "orca-*.sock")"
|
||||||
|
while pgrep -u "$USER" ^SequenceStorm &> /dev/null ; do
|
||||||
if [[ "$(uname)" == "Darwin" ]]; then
|
if [[ "$(uname)" == "Darwin" ]]; then
|
||||||
tmp="$(pbpaste 2> /dev/null)"
|
tmp="$(pbpaste 2> /dev/null)"
|
||||||
else
|
else
|
||||||
@ -114,19 +115,27 @@ while pgrep -u $USER ^SequenceStorm &> /dev/null ; do
|
|||||||
if [[ "$(uname)" == "Darwin" ]]; then
|
if [[ "$(uname)" == "Darwin" ]]; then
|
||||||
say -v alex -r 300 "$cliptext"
|
say -v alex -r 300 "$cliptext"
|
||||||
else
|
else
|
||||||
spd-say -w -r 50 -- "$cliptext"
|
if [[ -w "${socketFile}" ]]; then
|
||||||
|
echo "<#APPEND#>$cliptext" | socat - UNIX-CLIENT:"${socketFile}"
|
||||||
|
else
|
||||||
|
spd-say -w -r 50 -- "$cliptext"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [[ "$(uname)" == "Darwin" ]]; then
|
if [[ "$(uname)" == "Darwin" ]]; then
|
||||||
say -v alex -r 300 "$cliptext"
|
say -v alex -r 300 "$cliptext"
|
||||||
else
|
else
|
||||||
spd-say -r 50 -- "$cliptext"
|
if [[ -w "${socketFile}" ]]; then
|
||||||
|
echo "$cliptext" | socat - UNIX-CLIENT:"${socketFile}"
|
||||||
|
else
|
||||||
|
spd-say -r 50 -- "$cliptext"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
sleep 0.05
|
sleep 0.05
|
||||||
done
|
done
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
EOF
|
EOF
|
||||||
# Here-document end
|
# Here-document end
|
||||||
@ -469,6 +478,8 @@ gameList=(
|
|||||||
"AudioDisc"
|
"AudioDisc"
|
||||||
"Battle Zone"
|
"Battle Zone"
|
||||||
"Bloodshed"
|
"Bloodshed"
|
||||||
|
"Castaways"
|
||||||
|
"Castaways 2"
|
||||||
#"Chopper Challenge"
|
#"Chopper Challenge"
|
||||||
"Christmas WhoopAss"
|
"Christmas WhoopAss"
|
||||||
"Crazy Party"
|
"Crazy Party"
|
||||||
@ -604,6 +615,22 @@ case "${game}" in
|
|||||||
cp "${cache}/bloodshed.exe" "$WINEPREFIX/drive_c/Program Files/"
|
cp "${cache}/bloodshed.exe" "$WINEPREFIX/drive_c/Program Files/"
|
||||||
add_launcher "c:\Program Files\bloodshed.exe"
|
add_launcher "c:\Program Files\bloodshed.exe"
|
||||||
;;
|
;;
|
||||||
|
"Castaways")
|
||||||
|
export winVer="win7"
|
||||||
|
install_wine_bottle vb6run dx8vb speechsdk
|
||||||
|
download "https://www.kaldobsky.com/audiogames/castaways.zip"
|
||||||
|
unzip -d "$WINEPREFIX/drive_c/Program Files/castaways" "${cache}/castaways.zip"
|
||||||
|
wine "c:\Program Files\castaways\Checkup.exe" /verysilent
|
||||||
|
add_launcher "c:\Program Files\castaways\Castaways.exe"
|
||||||
|
;;
|
||||||
|
"Castaways 2")
|
||||||
|
export winVer="win7"
|
||||||
|
install_wine_bottle vb6run dx8vb speechsdk
|
||||||
|
download "http://www.kaldobsky.com/audiogames/castaways2beta.zip"
|
||||||
|
unzip -d "$WINEPREFIX/drive_c/Program Files/castaways" "${cache}/castaways2beta.zip"
|
||||||
|
wine "c:\Program Files\castaways\Checkup.exe" /verysilent
|
||||||
|
add_launcher "c:\Program Files\castaways\Castaways2.exe"
|
||||||
|
;;
|
||||||
"Chopper Challenge")
|
"Chopper Challenge")
|
||||||
# Freezes at menu
|
# Freezes at menu
|
||||||
install_wine_bottle vb6run dx8vb speechsdk
|
install_wine_bottle vb6run dx8vb speechsdk
|
||||||
@ -617,9 +644,7 @@ case "${game}" in
|
|||||||
"Christmas WhoopAss")
|
"Christmas WhoopAss")
|
||||||
install_wine_bottle vb6run dx8vb
|
install_wine_bottle vb6run dx8vb
|
||||||
download "https://www.agarchive.net/games/draconis/christmas%20whoopass%20setup.exe"
|
download "https://www.agarchive.net/games/draconis/christmas%20whoopass%20setup.exe"
|
||||||
wine "${cache}/christmas whoopass setup.exe" /silent &
|
wine "${cache}/christmas whoopass setup.exe" /sp- /silent
|
||||||
xdotool sleep 10 key --clearmodifiers alt+y 2> /dev/null
|
|
||||||
wineserver -w
|
|
||||||
add_launcher "c:\Program Files\Draconis Entertainment\Christmas Whoop Ass\wa.exe"
|
add_launcher "c:\Program Files\Draconis Entertainment\Christmas Whoop Ass\wa.exe"
|
||||||
;;
|
;;
|
||||||
"Crazy Party")
|
"Crazy Party")
|
||||||
@ -633,9 +658,7 @@ case "${game}" in
|
|||||||
"Crazy Tennis")
|
"Crazy Tennis")
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
download "https://www.agarchive.net/games/VIP/crazy%20tennis%20setup.exe"
|
download "https://www.agarchive.net/games/VIP/crazy%20tennis%20setup.exe"
|
||||||
wine "${cache}/crazy tennis setup.exe" /silent &
|
wine "${cache}/crazy tennis setup.exe" /sp- /silent
|
||||||
xdotool sleep 10 key --clearmodifiers alt+y 2> /dev/null
|
|
||||||
wineserver -w
|
|
||||||
add_launcher "c:\Program Files\Crazytennis\crazytennis.exe"
|
add_launcher "c:\Program Files\Crazytennis\crazytennis.exe"
|
||||||
;;
|
;;
|
||||||
"Death on the Road")
|
"Death on the Road")
|
||||||
@ -670,14 +693,12 @@ case "${game}" in
|
|||||||
install_wine_bottle dx8vb vb6run
|
install_wine_bottle dx8vb vb6run
|
||||||
download "http://www.agarchive.net/games/bpc/fartman.exe"
|
download "http://www.agarchive.net/games/bpc/fartman.exe"
|
||||||
wine "${cache}/fartman.exe" /silent
|
wine "${cache}/fartman.exe" /silent
|
||||||
#add_launcher "c:\Program Files\Finger Panic 1.0\FingerPanic.exe"
|
#add_launcher "c:\Program Files\"
|
||||||
;;
|
;;
|
||||||
"Finger Panic")
|
"Finger Panic")
|
||||||
install_wine_bottle dx8vb vb6run
|
install_wine_bottle dx8vb vb6run
|
||||||
download "http://www.agarchive.net/games/bsc/FingerPanicSetup.exe"
|
download "http://www.agarchive.net/games/bsc/FingerPanicSetup.exe"
|
||||||
wine "${cache}/FingerPanicSetup.exe" /silent &
|
wine "${cache}/FingerPanicSetup.exe" /sp- /silent
|
||||||
xdotool sleep 10 key --clearmodifiers alt+y 2> /dev/null
|
|
||||||
wineserver -w
|
|
||||||
add_launcher "c:\Program Files\Finger Panic 1.0\FingerPanic.exe"
|
add_launcher "c:\Program Files\Finger Panic 1.0\FingerPanic.exe"
|
||||||
;;
|
;;
|
||||||
"Fuck That Bird")
|
"Fuck That Bird")
|
||||||
@ -869,9 +890,7 @@ EOF
|
|||||||
"Pacman Talks")
|
"Pacman Talks")
|
||||||
install_wine_bottle
|
install_wine_bottle
|
||||||
download "http://www.gmagames.com/pmt101.exe"
|
download "http://www.gmagames.com/pmt101.exe"
|
||||||
wine "${cache}/pmt101.exe" /silent &
|
wine "${cache}/pmt101.exe" /sp- /silent &
|
||||||
xdotool sleep 10 key --clearmodifiers alt+y 2> /dev/null
|
|
||||||
wineserver -w
|
|
||||||
add_launcher "c:\Program Files\Pacman Talks\pmt.exe"
|
add_launcher "c:\Program Files\Pacman Talks\pmt.exe"
|
||||||
;;
|
;;
|
||||||
"Palace Punch Up")
|
"Palace Punch Up")
|
||||||
|
Loading…
Reference in New Issue
Block a user