Triple Triad now works.

This commit is contained in:
Storm Dragon 2020-12-17 01:06:57 -05:00
parent dc53aff8ac
commit b028836be5

View File

@ -54,7 +54,12 @@ update() {
fi fi
# make sure the site can be reached # make sure the site can be reached
ping -c1 stormgames.wolfe.casa &> /dev/null || return ping -c1 stormgames.wolfe.casa &> /dev/null || return
if [[ "$(wget --quiet -O - https://stormgames.wolfe.casa/downloads/audiogame-manager | sha256sum | cut -d ' ' -f1)" == "$(sha256sum "${filePath}" | cut -d ' ' -f1)" ]]; then if [[ "$(uname)" == "Darwin" ]]; then
local downloadFile="audiogame-manager.mac.zip"
else
local downloadFile="audiogame-manager"
fi
if [[ "$(wget --quiet -O - https://stormgames.wolfe.casa/downloads/${downloadFile} | sha256sum | cut -d ' ' -f1)" == "$(sha256sum "${filePath}" | cut -d ' ' -f1)" ]]; then
return return
fi fi
echo "There is a new version of ${0##*/} available." echo "There is a new version of ${0##*/} available."
@ -62,9 +67,9 @@ update() {
read -r continue read -r continue
if [[ "${continue,,}" =~ ^y|ye|yes$ ]]; then if [[ "${continue,,}" =~ ^y|ye|yes$ ]]; then
if [[ -w "$0" ]]; then if [[ -w "$0" ]]; then
wget --quiet -O "${filePath}" "https://stormgames.wolfe.casa/downloads/audiogame-manager" wget --quiet -O "${filePath}" "https://stormgames.wolfe.casa/downloads/${downloadFile}"
else else
sudo wget --quiet -O "${filePath}" "https://stormgames.wolfe.casa/downloads/audiogame-manager" sudo wget --quiet -O "${filePath}" "https://stormgames.wolfe.casa/downloads/${downloadFile}"
fi fi
echo "${0##*/} has been updated. Please launch the program again to use the latest version." echo "${0##*/} has been updated. Please launch the program again to use the latest version."
exit 0 exit 0
@ -1054,9 +1059,12 @@ EOF
;; ;;
"Triple Triad") "Triple Triad")
export winVer="win7" export winVer="win7"
install_wine_bottle vb6run dx8vb quartz install_wine_bottle vb6run dx8vb speechsdk
download "https://www.kaldobsky.com/audiogames/tripletriad.zip" download "https://www.kaldobsky.com/audiogames/tripletriad.zip"
unzip -d "$WINEPREFIX/drive_c/Program Files/Triple Triad" "${cache}/tripletriad.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/Triple Triad" "${cache}/tripletriad.zip"
wine "c:\Program Files\Triple Triad\Checkup.exe" &
xdotool sleep 10 key --clearmodifiers Return 2> /dev/null
wineserver -w
add_launcher "c:\Program Files\Triple Triad\TripleTriad.exe" add_launcher "c:\Program Files\Triple Triad\TripleTriad.exe"
;; ;;
"Undead Assault") "Undead Assault")