Merge branch 'testing' in preparation for binary release.

This commit is contained in:
Storm Dragon 2021-07-02 18:58:55 -04:00
commit fe8135ba96

View File

@ -46,6 +46,25 @@ EOF
# Dialog accessibility # Dialog accessibility
export DIALOGOPTS='--no-lines --visit-items' export DIALOGOPTS='--no-lines --visit-items'
# Check for latest news
check_news() {
trap return INT
# url for news file
local newsFile="https://stormgames.wolfe.casa/media/agm.ogg"
local newsPath="${configFile%/*.conf}/.news"
local newsTag="$(curl --connect-timeout 5 -sI "$newsFile" | grep -i '^etag: "' | cut -d '"' -f2)"
local newsOldTag="$(cat "$newsPath" 2> /dev/null)"
if [[ "$newsTag" != "$newsOldTag" ]]; then
dialog --yes-label 'Play' \
--no-label 'Later' \
--backtitle 'Audiogame Manager News' \
--yesno 'Audiogame manager news is available. Please use left and right arrows to navigate and enter to confirm.' -1 -1 || return
sox -qV0 "$newsFile" -d &> /dev/null
echo -n "$newsTag" > "$newsPath"
fi
}
# Automatic update function # Automatic update function
update() { update() {
local filePath="$(command -v ${0})" local filePath="$(command -v ${0})"
@ -165,6 +184,12 @@ checklist() {
errorList+=("Critical: Winetricks is not installed. This means wine cannot be configured, dependancies cannot be installed, and only self-voicing games have any chance of working.") errorList+=("Critical: Winetricks is not installed. This means wine cannot be configured, dependancies cannot be installed, and only self-voicing games have any chance of working.")
fi fi
packageList+=("winetricks") packageList+=("winetricks")
if command -v curl &> /dev/null ; then
[[ $# -eq 0 ]] && echo "Curl is installed."
else
errorList+=("Critical: Curl is not installed. Critical functionality will not work.")
fi
packageList+=("curl")
if command -v wget &> /dev/null ; then if command -v wget &> /dev/null ; then
[[ $# -eq 0 ]] && echo "Wget is installed." [[ $# -eq 0 ]] && echo "Wget is installed."
else else
@ -203,6 +228,12 @@ checklist() {
errorList+=("Warning: qjoypad is not installed. Qjoypad allows you to play keyboard only games with a gamepad.") errorList+=("Warning: qjoypad is not installed. Qjoypad allows you to play keyboard only games with a gamepad.")
fi fi
packageList+=("qjoypad") packageList+=("qjoypad")
if command -v sox &> /dev/null ; then
[[ $# -eq 0 ]] && echo "Sox is installed."
else
errorList+=("Warning: Sox is not installed. Audio will not work.")
fi
packageList+=("sox")
if command -v unix2dos &> /dev/null ; then if command -v unix2dos &> /dev/null ; then
[[ $# -eq 0 ]] && echo "Dos2unix is installed." [[ $# -eq 0 ]] && echo "Dos2unix is installed."
else else
@ -308,7 +339,18 @@ get_installer() {
if [[ -f "${cache}/$1" ]]; then if [[ -f "${cache}/$1" ]]; then
return return
fi fi
read -p "Make sure $1 is available in either your Downloads or Desktop directory and press enter to continue." continue # Create message for dialog.
local message="Make sure $1 is available in either your Downloads or Desktop directory and press enter to continue."
if [[ -n "$2" ]]; then
message+="\n\nThe last good known URL for $game is:"
message+="\n$2"
fi
if echo "$2" | xclip -selection clipboard 2> /dev/null ; then
message+="\n\nThe URL has been copied to the clipboard."
fi
dialog --ok-label "Continue" \
--backtitle "Audiogame Manager" \
--msgbox "$message" -1 -1
# Search the Desktop and Downloads directories for the installation file # Search the Desktop and Downloads directories for the installation file
for i in ~/Downloads ~/Desktop ; do for i in ~/Downloads ~/Desktop ; do
find $i -type f -name "$1" -exec cp -v {} "${cache}/" \; find $i -type f -name "$1" -exec cp -v {} "${cache}/" \;
@ -474,7 +516,7 @@ game_removal() {
exit 0 exit 0
fi fi
local winePath="${game#*|}" local winePath="${game#*|}"
winePath="${winePath%\\*.exe}" export winePath="${winePath%\\*.exe}"
local wineExec="${game#*|}" local wineExec="${game#*|}"
wineExec="${wineExec%|*}" wineExec="${wineExec%|*}"
wineExec="${wineExec##*\\}" wineExec="${wineExec##*\\}"
@ -488,7 +530,8 @@ game_removal() {
# remove the game # remove the game
rm -rf "${WINEPREFIX}" rm -rf "${WINEPREFIX}"
else else
read -rp "This bottle \"${WINEPREFIX##*/}\" contains multiple entries and must be handled manually. To remove only the launcher from the menu, press enter. To cancel press control+c. " continue read -rp "This bottle \"${WINEPREFIX##*/}\" contains multiple entries, so only the game will be removed. To continue press enter. To cancel press control+c. " continue
rm -rf "$(winepath "${winePath}")"
fi fi
# remove the launcher # remove the launcher
gawk -i inplace -vLine="${game//\\/\\\\}" '!index($0,Line)' "$configFile" gawk -i inplace -vLine="${game//\\/\\\\}" '!index($0,Line)' "$configFile"
@ -612,6 +655,12 @@ game_launcher() {
wine "$winePath\\$wineExec" wine "$winePath\\$wineExec"
exit 0 exit 0
fi fi
if [[ "$game" =~ screaming-strike-2 ]]; then
pushd "$(winepath "$winePath")"
wine "$wineExec"
popd
exit 0
fi
if [[ -d "${WINEPREFIX}/drive_c/windows/syswow64" ]]; then if [[ -d "${WINEPREFIX}/drive_c/windows/syswow64" ]]; then
wine64 start /realtime /d "${winePath}" "$wineExec" wine64 start /realtime /d "${winePath}" "$wineExec"
else else
@ -679,15 +728,51 @@ gameList=(
"Battle of the Hunter" "Battle of the Hunter"
"Battle Zone" "Battle Zone"
"Beatstar Pro" "Beatstar Pro"
"BG 2048"
"BG 15 Puzzle"
"BG Aces Up Solitaire"
"BG Alchemy"
"BG Battleship"
"BG Boggle"
"BG Boxes"
"BG Brainiac"
"BG Chess Challenge"
"BG Code Breaker"
"BG Cribbage" "BG Cribbage"
"BG Cribbage Solitaire"
"BG Crossword Puzzle"
"BG Draw Dominoes"
"BG Fives Dominoes"
"BG Elevens Solitaire"
"BG Free Cell Solitaire" "BG Free Cell Solitaire"
"BG Golf Solitaire"
"BG Hangman"
"BG Hearts" "BG Hearts"
"BG Klondike Solitaire" "BG Klondike Solitaire"
"BG LAP" "BG LAP"
"BG Master Mind"
"BG Mine Sweeper" "BG Mine Sweeper"
"BG Nomination Whist"
"BG Penguin Solitaire" "BG Penguin Solitaire"
"BG Poker Solitaire"
"BG Pyramid Solitaire"
"BG Scorpion Solitaire" "BG Scorpion Solitaire"
"BG Simon"
"BG Spider Solitaire"
"BG Scrabble"
"BG Sudoku"
"BG Tablic Solitaire"
"BG Tri-Peaks Solitaire"
"BG Twenty 20 Cricket"
"BG Uno" "BG Uno"
"BG Word Builder"
"BG Word Candy"
"BG Word Jumble"
"BG Word Maze"
"BG Word Solitaire"
"BG Word Target"
"BG Word Yahtzee"
"BG Yahtzee"
"Bloodshed" "Bloodshed"
"Bombercats" "Bombercats"
#"Breed Memorial" #"Breed Memorial"
@ -743,6 +828,7 @@ gameList=(
"RS Games" "RS Games"
"Run For Your Life" "Run For Your Life"
#"Sammy Center" #"Sammy Center"
"Screaming Strike 2"
"Scrolling Battles" "Scrolling Battles"
"Sequence Storm" "Sequence Storm"
#"Shades of Doom 1.2" #"Shades of Doom 1.2"
@ -773,6 +859,15 @@ gameList=(
#"World of War" #"World of War"
) )
# Make sure the minimum of curl, sox, wget, wine, and winetricks are installed
for i in curl sox wget wine winetricks ; do
if ! command -v $i &> /dev/null ; then
echo "Please install $i before continuing."
exit 1
fi
done
# Get latest news if available
check_news
# With no arguments, open the game launcher. # With no arguments, open the game launcher.
if [[ $# -eq 0 ]]; then if [[ $# -eq 0 ]]; then
game_launcher game_launcher
@ -864,7 +959,7 @@ case "${game}" in
download "https://stormgames.wolfe.casa/downloads/bth.zip" download "https://stormgames.wolfe.casa/downloads/bth.zip"
unzip -d "$WINEPREFIX/drive_c/Program Files/$game" "${cache}/bth.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/$game" "${cache}/bth.zip"
find "${WINEPREFIX}" -type f -name "nvdaControllerClient32.dll" -exec rm -fv "{}" \; find "${WINEPREFIX}" -type f -name "nvdaControllerClient32.dll" -exec rm -fv "{}" \;
add_launcher "c:\Program Files\\${game}/bth.exe" add_launcher "c:\Program Files\\${game}\bth.exe"
;; ;;
"Battle Zone") "Battle Zone")
export winVer="win7" export winVer="win7"
@ -880,80 +975,368 @@ case "${game}" in
install_wine_bottle speechsdk mf install_wine_bottle speechsdk mf
download "https://oriolgomez.com/games/beat_windows.zip" download "https://oriolgomez.com/games/beat_windows.zip"
unzip -d "$WINEPREFIX/drive_c/Program Files/Beatstar Pro" "${cache}/beat_windows.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/Beatstar Pro" "${cache}/beat_windows.zip"
add_launcher "c:\Program Files\Beatstar Pro/beatstar.exe" add_launcher "c:\Program Files\Beatstar Pro\beatstar.exe"
;;
"BG 2048")
bgInstaller="BG204832Setup10a.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\BG2048B\BG2048.exe"
;;
"BG 15 Puzzle")
bgInstaller="FPB32Setup10a.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\FifteenB\FifteenB.exe"
;;
"BG Aces Up Solitaire")
bgInstaller="ASB32Setup10.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\AcesUpB\AcesUpB.exe"
;;
"BG Alchemy")
bgInstaller="BAC32Setup10.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\AlchemyB\AlchemyB.exe"
;;
"BG Battleship")
bgInstaller="BGB32Setup10.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\BattleshipB\BGBattleship.exe"
;;
"BG Boggle")
bgInstaller="BGB32Setup10a.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\BoggleB\BoggleB.exe"
;;
"BG Boxes")
bgInstaller="BXB32Setup10.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\BoxesB\BoxesB.exe"
;;
"BG Brainiac")
bgInstaller="BRN32Setup10a.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\BrainiacB\BrainiacB.exe"
;;
"BG Chess Challenge")
bgInstaller="BGC32Setup10d.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\ChessB\BGChess.exe"
;;
"BG Code Breaker")
bgInstaller="BCB32Setup10.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\CodeBreakerB\BGCodeBreaker.exe"
;; ;;
"BG Cribbage") "BG Cribbage")
bgInstaller="BGC32Setup12e.exe" bgInstaller="BGC32Setup12e.exe"
export bottle="bg" export bottle="bg"
get_installer "$bgInstaller" get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\CribbageB\CribbageB.exe" add_launcher "c:\Program Files\Games\CribbageB\CribbageB.exe"
;; ;;
"BG Cribbage Solitaire")
bgInstaller="BCS32Setup10.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\CribSolB\CribSolB.exe"
;;
"BG Crossword Puzzle")
bgInstaller="BGX32Setup10h.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\CrosswordB\CrosswordB.exe"
;;
"BG Draw Dominoes")
bgInstaller="BDD32Setup10.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\DrawDominoesB\DrawDominoesB.exe"
;;
"BG Elevens Solitaire")
bgInstaller="ESB32Setup10.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\ElevensB\ElevensB.exe"
;;
"BG Fives Dominoes")
bgInstaller="BFD32Setup10.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\FivesDominoesB\FivesDominoesB.exe"
;;
"BG Free Cell Solitaire") "BG Free Cell Solitaire")
bgInstaller="BGF32Setup20.exe" bgInstaller="BGF32Setup20.exe"
export bottle="bg" export bottle="bg"
get_installer "$bgInstaller" get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\FreecellB\FreecellB.exe" add_launcher "c:\Program Files\Games\FreecellB\FreecellB.exe"
;; ;;
"BG Klondike Solitaire") "BG Golf Solitaire")
bgInstaller="BGK32Setup10b.exe" bgInstaller="GSB32Setup10a.exe"
export bottle="bg" export bottle="bg"
get_installer "$bgInstaller" get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\KlondikeB\KlondikeB.exe" add_launcher "c:\Program Files\Games\GolfSolitaireB\GolfSolitaireB.exe"
;;
"BG Hangman")
bgInstaller="HMB32Setup10.exe"
export bottle="bg"
get_installer "${bgInstaller}" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\HangmanB\HangmanB.exe"
;; ;;
"BG Hearts") "BG Hearts")
bgInstaller="BGH32Setup10b.exe" bgInstaller="BGH32Setup10b.exe"
export bottle="bg" export bottle="bg"
get_installer "${bgInstaller}" get_installer "${bgInstaller}" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\HeartsB\HeartsB.exe" add_launcher "c:\Program Files\Games\HeartsB\HeartsB.exe"
;; ;;
"BG Klondike Solitaire")
bgInstaller="BGK32Setup10b.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\KlondikeB\KlondikeB.exe"
;;
"BG LAP") "BG LAP")
bgInstaller="LAP32Setup10.exe" bgInstaller="LAP32Setup10.exe"
export bottle="bg" export bottle="bg"
get_installer "${bgInstaller}" get_installer "${bgInstaller}" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\LAP\LAP.exe" add_launcher "c:\Program Files\Games\LAP\LAP.exe"
;; ;;
"BG Master Mind")
bgInstaller="BMM32Setup10.exe"
export bottle="bg"
get_installer "${bgInstaller}" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\MastermindB\BGMasterMind.exe"
;;
"BG Mine Sweeper") "BG Mine Sweeper")
bgInstaller="MSB32Setup10.exe" bgInstaller="MSB32Setup10.exe"
export bottle="bg" export bottle="bg"
get_installer "${bgInstaller}" get_installer "${bgInstaller}" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\MinesweeperB\MinesweeperB.exe" add_launcher "c:\Program Files\Games\MinesweeperB\MinesweeperB.exe"
;; ;;
"BG Nomination Whist")
bgInstaller="BNW32Setup10a.exe"
export bottle="bg"
get_installer "${bgInstaller}" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\NomWhistB\NomWhistB.exe"
;;
"BG Penguin Solitaire") "BG Penguin Solitaire")
bgInstaller="BPS32Setup10c.exe" bgInstaller="BPS32Setup10c.exe"
export bottle="bg" export bottle="bg"
get_installer "$bgInstaller" get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\PenguinB\PenguinB.exe" add_launcher "c:\Program Files\Games\PenguinB\PenguinB.exe"
;; ;;
"BG Poker Solitaire")
bgInstaller="BPS32Setup10.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\PokerSolB\PokerSolB.exe"
;;
"BG Pyramid Solitaire")
bgInstaller="PSB32Setup10a.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\PyramidB\PyramidB.exe"
;;
"BG Scorpion Solitaire") "BG Scorpion Solitaire")
bgInstaller="BSS32Setup10.exe" bgInstaller="BSS32Setup10.exe"
export bottle="bg" export bottle="bg"
get_installer "$bgInstaller" get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\ScorpionB\ScorpionB.exe" add_launcher "c:\Program Files\Games\ScorpionB\ScorpionB.exe"
;; ;;
"BG Simon")
bgInstaller="BGS32Setup10.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\SimonB\SimonB.exe"
;;
"BG Spider Solitaire")
bgInstaller="SPB32Setup10b.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\SpiderB\SpiderB.exe"
;;
"BG Scrabble")
bgInstaller="BGS32Setup20.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\ScrabbleB\ScrabbleB.exe"
;;
"BG Sudoku")
bgInstaller="SDB32Setup10a.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\SudokuB\SudokuB.exe"
;;
"BG Tablic Solitaire")
bgInstaller="TSB32Setup10.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\TabSolB\BGTabSol.exe"
;;
"BG Tri-Peaks Solitaire")
bgInstaller="TPB32Setup10a.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\TriPeaksB\TriPeaksB.exe"
;;
"BG Twenty 20 Cricket")
bgInstaller="T20B32Setup10.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\T20CricketB\CricketB.exe"
;;
"BG Uno") "BG Uno")
bgInstaller="BGU32Setup11a.exe" bgInstaller="BGU32Setup11a.exe" "http://www.spoonbillsoftware.com.au/bggames.htm"
export bottle="bg" export bottle="bg"
get_installer "${bgInstaller}" get_installer "${bgInstaller}"
install_wine_bottle speechsdk install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\UnoB\UnoB.exe" add_launcher "c:\Program Files\Games\UnoB\UnoB.exe"
;; ;;
"BG Word Builder")
bgInstaller="BWB32Setup10.exe"
export bottle="bg"
get_installer "${bgInstaller}" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\WordBuilderB\WordBuilderB.exe"
;;
"BG Word Candy")
bgInstaller="WCB32Setup10a.exe"
export bottle="bg"
get_installer "${bgInstaller}" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\WordCandyB\WordCandyB.exe"
;;
"BG Word Jumble")
bgInstaller="BWJ32Setup10.exe"
export bottle="bg"
get_installer "${bgInstaller}" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\WordJumbleB\WordJumbleB.exe"
;;
"BG Word Maze")
bgInstaller="BWM32Setup10.exe"
export bottle="bg"
get_installer "${bgInstaller}" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\WordMazeB\WordMazeB.exe"
;;
"BG Word Solitaire")
bgInstaller="WSB32Setup10.exe"
export bottle="bg"
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\WordSolitaireB\WordSolitaireB.exe"
;;
"BG Word Target")
bgInstaller="WTB32Setup10a.exe"
export bottle="bg"
get_installer "${bgInstaller}" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\WordTargetB\WordTargetB.exe"
;;
"BG Word Yahtzee")
bgInstaller="BWY32Setup10.exe"
export bottle="bg"
get_installer "${bgInstaller}" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\WordYahtzeeB\BGWordYahtzee.exe"
;;
"BG Yahtzee")
bgInstaller="BGY32Setup10a.exe"
export bottle="bg"
get_installer "${bgInstaller}" "http://www.spoonbillsoftware.com.au/bggames.htm"
install_wine_bottle speechsdk
wine "${cache}/${bgInstaller}" /silent
add_launcher "c:\Program Files\Games\yahtzeeB\BGYahtzee.exe"
;;
"Bloodshed") "Bloodshed")
export winVer="win7" export winVer="win7"
install_wine_bottle speechsdk install_wine_bottle speechsdk
@ -972,7 +1355,7 @@ case "${game}" in
;; ;;
"Breed Memorial") "Breed Memorial")
export winVer="win7" export winVer="win7"
install_wine_bottle corefonts speechsdk install_wine_bottle cjkfonts speechsdk
download "https://hirotaka2014.sakura.ne.jp/mh0406/game/breed_memorial.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" download "https://hirotaka2014.sakura.ne.jp/mh0406/game/breed_memorial.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll"
unzip -d "$WINEPREFIX/drive_c/Program Files/" "${cache}/breed_memorial.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/" "${cache}/breed_memorial.zip"
#find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \; #find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \;
@ -1124,7 +1507,7 @@ case "${game}" in
install_wine_bottle install_wine_bottle
download "http://oriolgomez.com/games/bird_en.zip" download "http://oriolgomez.com/games/bird_en.zip"
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"
;; ;;
"Golden Crayon") "Golden Crayon")
export winVer="win7" export winVer="win7"
@ -1132,7 +1515,7 @@ case "${game}" in
download "http://tunmi13.ddns.net/projects/golden_crayon.zip" download "http://tunmi13.ddns.net/projects/golden_crayon.zip"
unzip -d "$WINEPREFIX/drive_c/Program Files/" "${cache}/golden_crayon.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/" "${cache}/golden_crayon.zip"
find "${WINEPREFIX}" -type f -name "nvdaControllerClient32.dll" -exec rm -fv "{}" \; find "${WINEPREFIX}" -type f -name "nvdaControllerClient32.dll" -exec rm -fv "{}" \;
add_launcher "c:\Program Files\\golden_crayon/gc.exe" add_launcher "c:\Program Files\\golden_crayon\gc.exe"
;; ;;
"GMA Tank Commander") "GMA Tank Commander")
install_wine_bottle vb6run dx8vb speechsdk install_wine_bottle vb6run dx8vb speechsdk
@ -1401,7 +1784,7 @@ EOF
download "http://oriolgomez.com/games/rr_en.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" download "http://oriolgomez.com/games/rr_en.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll"
unzip -d "$WINEPREFIX/drive_c/Program Files/rhythm rage" "${cache}/rr_en.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/rhythm rage" "${cache}/rr_en.zip"
find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \; find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \;
add_launcher "c:\Program Files\rhythm rage/game.exe" add_launcher "c:\Program Files\rhythm rage\game.exe"
;; ;;
"River Raiders") "River Raiders")
# Choppy sound under water. # Choppy sound under water.
@ -1436,6 +1819,16 @@ EOF
find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \; find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \;
add_launcher "c:\Program Files\Sam Tupy\SammyCenter\SammyCenter.exe" add_launcher "c:\Program Files\Sam Tupy\SammyCenter\SammyCenter.exe"
;; ;;
"Screaming Strike 2")
export winVer="win7"
install_wine_bottle cjkfonts speechsdk
download "https://www.nyanchangames.com/softs/screamingStrike2.exe" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll"
wine "${cache}/screamingStrike2.exe" &
xdotool sleep 10 key Return
wineserver -w
find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \;
add_launcher "c:\nyanchangame\Screaming Strike 2\play.exe"
;;
"Scrolling Battles") "Scrolling Battles")
export winVer="win7" export winVer="win7"
install_wine_bottle speechsdk install_wine_bottle speechsdk
@ -1445,7 +1838,7 @@ EOF
add_launcher "c:\Program Files\scrolling battles\SBYW.exe" add_launcher "c:\Program Files\scrolling battles\SBYW.exe"
;; ;;
"Sequence Storm") "Sequence Storm")
get_installer "sequence-storm-win64.zip" get_installer "sequence-storm-win64.zip" "https://special-magic-games-llc.itch.io/sequence-storm"
export WINEARCH=win64 export WINEARCH=win64
export winVer="win10" export winVer="win10"
install_wine_bottle install_wine_bottle
@ -1679,7 +2072,7 @@ EOF
echo "In each subsequent launch, you will need to hit enter a couple times before it starts speaking." echo "In each subsequent launch, you will need to hit enter a couple times before it starts speaking."
;; ;;
"Windows Attack") "Windows Attack")
get_installer "WA.exe" get_installer "WA.exe" "https://drive.google.com/file/d/1BwKGLP37m-Z6nyKdo8LwmU9J1CEqfMb_/view?usp=drivesdk"
export winVer="win7" export winVer="win7"
install_wine_bottle speechsdk install_wine_bottle speechsdk
cp "${cache}/WA.exe" "$WINEPREFIX/drive_c/Program Files/" cp "${cache}/WA.exe" "$WINEPREFIX/drive_c/Program Files/"