Work on adding games. code reorginaztion.

This commit is contained in:
Storm Dragon 2020-12-04 17:38:43 -05:00
parent c8fd244c64
commit d1b1650b77
2 changed files with 28 additions and 51 deletions

View File

@ -414,10 +414,12 @@ gameList=(
"Shades of Doom" "Shades of Doom"
"Super Egg Hunt" "Super Egg Hunt"
"Super Liam" "Super Liam"
"Survive the Wild"
"Swamp" "Swamp"
"Technoshock"
"The Blind Swordsman" "The Blind Swordsman"
"The Great Toy Robbery" "The Great Toy Robbery"
"Technoshock" #"Three D velocity"
"Top Speed 3" "Top Speed 3"
"Undead Assault" "Undead Assault"
) )
@ -819,6 +821,14 @@ EOF
wine "${cache}/superliamsetup.exe" /silent wine "${cache}/superliamsetup.exe" /silent
add_launcher "c:\Program Files\lWorks\Super Liam\sl.exe" add_launcher "c:\Program Files\lWorks\Super Liam\sl.exe"
;; ;;
"Survive the Wild")
export winVer="win7"
install_wine_bottle speechsdk
download "https://stormgames.wolfe.casa/downloads/survive-the-wild.tar.xz"
echo "Extracting files..."
tar xf "${cache}/survive-the-wild.tar.xz" -C "$WINEPREFIX/drive_c/Program Files/"
add_launcher "c:\Program Files\Sam Tupy\Survive the Wild\stw.exe"
;;
"Swamp") "Swamp")
export winVer="win7" export winVer="win7"
winetricksSettings="vd=1024x768" winetricksSettings="vd=1024x768"
@ -833,6 +843,16 @@ EOF
wine cmd.exe /c 'cd /d c:\Program Files\swamp && Windows32bit.bat' wine cmd.exe /c 'cd /d c:\Program Files\swamp && Windows32bit.bat'
add_launcher "c:\Program Files\swamp\Swamp.exe" add_launcher "c:\Program Files\swamp\Swamp.exe"
;; ;;
"Technoshock")
install_wine_bottle
download "http://tiflocomp.ru/download/games/technoshock_140b_en.zip" "http://tiflocomp.ru/download/games/technoshock140b_en_update.zip"
unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/technoshock_140b_en.zip"
unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/technoshock_140b_en_update.zip"
wine "$WINEPREFIX/drive_c/Program Files/setup_eng.exe" /silent
wineserver -w
wine "$WINEPREFIX/drive_c/Program Files/setup_eng_update_pack.exe" /silent
add_launcher "c:\Program Files\Tiflocomp Games\Technoshock\ts.exe"
;;
"The Blind Swordsman") "The Blind Swordsman")
install_wine_bottle install_wine_bottle
download "http://www.evildogserver.com/theblindswordsman/theblindswordsmanPC.zip" download "http://www.evildogserver.com/theblindswordsman/theblindswordsmanPC.zip"
@ -847,15 +867,13 @@ 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\Lworks\The Great Toy Robbery\tgtr.exe" add_launcher "c:\Program Files\Lworks\The Great Toy Robbery\tgtr.exe"
;; ;;
"Technoshock") "Three D velocity")
install_wine_bottle export winVer="win10"
download "http://tiflocomp.ru/download/games/technoshock_140b_en.zip" "http://tiflocomp.ru/download/games/technoshock140b_en_update.zip" install_wine_bottle speechsdk
unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/technoshock_140b_en.zip" download "https://github.com/munawarb/Three-D-Velocity-Binaries/archive/master.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll"
unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/technoshock_140b_en_update.zip" unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/master.zip"
wine "$WINEPREFIX/drive_c/Program Files/setup_eng.exe" /silent find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \;
wineserver -w add_launcher "c:\Program Files\Three-D-Velocity-Binaries-master\tdv.exe"
wine "$WINEPREFIX/drive_c/Program Files/setup_eng_update_pack.exe" /silent
add_launcher "c:\Program Files\Tiflocomp Games\Technoshock\ts.exe"
;; ;;
"Top Speed 3") "Top Speed 3")
install_wine_bottle directplay install_wine_bottle directplay

View File

@ -1,41 +0,0 @@
#!/bin/bash
# Immediately exit if errors are encountered.
set -e
# Installer/configuration tool for wine
# If this fails on your system, please contact storm_dragon@linux-a11y.org
is_function() {
LC_ALL=C type "$1" 2> /dev/null | grep -q "$1 is a function"
}
configure_arch() {
declare -a packageList=(cabextract dos2unix unzip wget wine winetricks wine_gecko wine-mono sdl2 ncurses mpg123 libpulse libpng libjpeg-turbo gnutls alsa-plugins alsa-lib mesa openal xz lib32-gst-plugins-good)
if [[ "$(uname -m)" == "x86_64" ]]; then
# Enable multilib
sudo sed -i '/^#\[multilib\]$/{{N;s/^#\[multilib\]\n#Include = \/etc\/pacman.d\/mirrorlist$/[multilib]\nInclude = \/etc\/pacman.d\/mirrorlist/;t;P;D}}' /etc/pacman.conf
# include lib32 packages.
packageList+=(lib32-sdl2 lib32-ncurses lib32-mpg123 lib32-libpulse lib32-libpng lib32-libjpeg-turbo lib32-gnutls lib32-alsa-plugins lib32-alsa-lib lib32-mesa lib32-openal)
fi
sudo pacman -Sy --needed ${packageList[*]}
}
configure_debian() {
declare -a packageList=(winehq-stable)
# make sure 32 bit libraries are available
sudo dpkg --add-architecture i386
sudo apt install --install-recommends ${packageList[*]}
}
distro="$(head -1 /etc/issue | cut -d ' ' -f1)"
distro="${distro,,}"
if is_function configure_${distro} ; then
configure_${distro}
else
echo "${distro^} is not yet supported. If you want it added, please contact storm_dragon@linux-a11y.org" | fold -s -w 72
fi
exit 0