more progress, but create_game_array is horribly broken.
This commit is contained in:
@ -1,81 +1,6 @@
|
||||
get_bottle() {
|
||||
# Handles games that use the same wine bottle
|
||||
case "${game}" in
|
||||
# Aprone (Jeremy Kaldobsky) games.
|
||||
"castaways"*) ;&
|
||||
"castaways-2"*) ;&
|
||||
"daytona-and-the-book-of-gold"*) ;&
|
||||
"dog-who-hates-toast"*) ;&
|
||||
"lunimals"*) ;&
|
||||
"paw-prints"*) ;&
|
||||
"penta-path"*) ;&
|
||||
"preludeamals"*) ;&
|
||||
"puzzle-divided"*) ;&
|
||||
"rettou"*) ;&
|
||||
"revelation"*) ;&
|
||||
"swamp"*) ;&
|
||||
"tarot-assistant"*) ;&
|
||||
"triple-triad"*)
|
||||
export WINEPREFIX="${HOME}/.local/wine/aprone" ;;
|
||||
"bg-"*) export WINEPREFIX="${HOME}/.local/wine/bg";;
|
||||
# draconis games
|
||||
"esp-pinball-classic"*) ;&
|
||||
"esp-pinball-extreme"*) ;&
|
||||
"esp-pinball-party-pack"*) ;&
|
||||
"silver-dollar"*) ;&
|
||||
"monkey-business"*) ;&
|
||||
"alien-outback"*) ;&
|
||||
"dyna-man"*) ;&
|
||||
"change-reaction"*) ;&
|
||||
"ten-pin-alley"*) export WINEPREFIX="${HOME}/.local/wine/draconis";;
|
||||
# l-works games group
|
||||
"duck-hunt"*) ;&
|
||||
"judgement-day"*) ;&
|
||||
"lockpick"*) ;&
|
||||
"pigeon-panic"*) ;&
|
||||
"smashathon"*) ;&
|
||||
"super-egg-hunt"*) ;&
|
||||
"super-liam"*) ;&
|
||||
"the-great-toy-robbery"*) export WINEPREFIX="${HOME}/.local/wine/l-works";;
|
||||
# Nyanchan games group
|
||||
"bokurano-daibouken"*) ;&
|
||||
"laser-breakout"*) ;&
|
||||
"marina-break"*) ;&
|
||||
"mp5"*) ;&
|
||||
"screaming-strike-2"*) ;&
|
||||
"world-of-war"*) export WINEPREFIX="${HOME}/.local/wine/nyanchan";;
|
||||
# Oriol Gomez games group
|
||||
"bombercats"*) ;&
|
||||
"copter-mission"*) ;&
|
||||
"danger-on-the-wheel"*) ;&
|
||||
"death-on-the-road"*) ;&
|
||||
"fuck-that-bird"*) ;&
|
||||
"hammer-of-glory"*) ;&
|
||||
"insect-therapy"*) ;&
|
||||
"rhythm-rage"*) ;&
|
||||
"run-for-your-life"*) ;&
|
||||
"thief"*) ;&
|
||||
"villains-from-beyond"*) export WINEPREFIX="${HOME}/.local/wine/oriol-gomez";;
|
||||
# pbgames group
|
||||
"dark-destroyer"*) ;&
|
||||
"PBGames TMP") export WINEPREFIX="$HOME/.local/wine/pbgames" ;;
|
||||
# tunmi13 games group
|
||||
"battle-of-the-hunter"*) ;&
|
||||
"clashes-of-the-sky"*) ;&
|
||||
"challenge-of-the-horse"*) export WINEPREFIX="${HOME}/.local/wine/tunmi13";;
|
||||
# tunmi13-64bit games group
|
||||
"battlefield-2d"*) ;&
|
||||
"haunted-party"*) ;&
|
||||
"skateboarder-pro"*) export WINEPREFIX="${HOME}/.local/wine/tunmi13-64bit";;
|
||||
# Dan Z games group
|
||||
"lost"*) ;&
|
||||
"maze-craze"*) ;&
|
||||
"super-deekout"*)
|
||||
export norh="true"
|
||||
export WINEPREFIX="$HOME/.local/wine/dan-z"
|
||||
;;
|
||||
*) export WINEPREFIX="${HOME}/.local/wine/${game%|*}";;
|
||||
esac
|
||||
local architecture="${1/win/}"
|
||||
export WINEPREFIX="$HOME/.local/wine${architecture}"
|
||||
# Wine version for bottles
|
||||
if [[ "$game" =~ entombed ]]; then
|
||||
install_wine "6.18" "32"
|
||||
@ -145,7 +70,7 @@ winetricks() {
|
||||
}
|
||||
|
||||
install_rhvoice() {
|
||||
if [[ -d "$HOME/.local/wine/${bottle}/drive_c/Program Files/Olga Yakovleva/" ]]; then
|
||||
if [[ -d "${WINEPREFIX}/drive_c/Program Files/Olga Yakovleva/" ]]; then
|
||||
return
|
||||
fi
|
||||
if [[ "$norh" == "true" ]]; then
|
||||
@ -195,12 +120,12 @@ install_wine_bottle() {
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
if [[ -z "$WINEARCH" ]] || [[ "${WINEARCH}" == "win64" ]]; then
|
||||
if [[ ( -z "$WINEARCH" || "$WINEARCH" == "win64" ) && ! "$*" =~ speechsdk ]]; then
|
||||
local architecture=64
|
||||
else
|
||||
local architecture=32
|
||||
fi
|
||||
export WINEPREFIX="$HOME/.local/wine${architecture}"
|
||||
export WINEPREFIX="$HOME/.local/wine${bottle:+/}${bottle:-$architecture}"
|
||||
# Arguments to the function are dependancies to be installed.
|
||||
# Get location of mono and gecko.
|
||||
monoPath="$(find /usr/share/wine/ -maxdepth 1 -type d -name mono 2> /dev/null)"
|
||||
@ -246,8 +171,7 @@ install_wine_bottle() {
|
||||
}
|
||||
|
||||
add_launcher() {
|
||||
local launchSettings="${game,,}"
|
||||
launchSettings="${launchSettings//[[:space:]]/-}|${1}|${game}"
|
||||
local launchSettings="${WINEARCH:-win64}|${1}|${game}"
|
||||
shift
|
||||
while [[ $# -gt 0 ]]; do
|
||||
launchSettings+="|$1"
|
||||
|
Reference in New Issue
Block a user