merged to master.

This commit is contained in:
Storm Dragon 2020-12-17 09:36:20 -05:00
commit 017f823544
9 changed files with 1026 additions and 724 deletions

1207
LICENSE

File diff suppressed because it is too large Load Diff

View File

@ -1,22 +1,47 @@
#!/usr/bin/env bash #!/usr/bin/env bash
#
# Copyright 2020, Stormux, <storm_dragon@linux-a11y.org> license() {
# cat << EOF
# This is free software; you can redistribute it and/or modify it under the ■The contents of this file are subject to the Common Public Attribution
# terms of the GNU General Public License as published by the Free License Version 1.0 (the ■License■); you may not use this file except in
# Software Foundation; either version 3, or (at your option) any later compliance with the License. You may obtain a copy of the License at
# version. https://opensource.org/licenses/CPAL-1.0. The License is based on the Mozilla Public License Version
# 1.1 but Sections 14 and 15 have been added to cover use of software over a
# This software is distributed in the hope that it will be useful, computer network and provide for limited attribution for the Original
# but WITHOUT ANY WARRANTY; without even the implied warranty of Developer. In addition, Exhibit A has been modified to be consistent with
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Exhibit B.
# General Public License for more details.
# Software distributed under the License is distributed on an ■AS IS■ basis,
# You should have received a copy of the GNU General Public License WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# along with this package; see the file COPYING. If not, write to the Free for the specific language governing rights and limitations under the
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA License.
# 02110-1301, USA.
# The Original Code is audiogame manager.
The Original Developer is not the Initial Developer and is . If
left blank, the Original Developer is the Initial Developer.
The Initial Developer of the Original Code is Billy "Storm Dragon" Wolfe. All portions of
the code written by Billy Wolfe are Copyright (c) 2020. All Rights
Reserved.
Contributor Michael Taboada.
Contributor Jeremiah Ticket.
Attribution Copyright Notice: Audiogame manager copyright 2020 Storm Dragon. All rights reserved.
Attribution Phrase (not exceeding 10 words): A Stormux project
Attribution URL: https://stormgames.wolfe.casa
Graphic Image as provided in the Covered Code, if any.
Display of Attribution Information is required in Larger
Works which are defined in the CPAL as a work which combines Covered Code
or portions thereof with code not governed by the terms of the CPAL.
EOF
}
# Dialog accessibility # Dialog accessibility
export DIALOGOPTS='--no-lines --visit-items' export DIALOGOPTS='--no-lines --visit-items'
@ -24,12 +49,17 @@ 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, ASCII text' ; 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
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"
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."
@ -37,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
@ -184,6 +214,26 @@ checklist() {
exit 0 exit 0
} }
clear_cache() {
local answer
if [[ ! -d "${cache}" ]]; then
echo "No cache found at ${cache}."
return
fi
while ! [[ "${answer,,}" =~ ^yes$|^no$ ]]; do
echo "This will delete all contents of ${cache}. Are you sure you want to continue?"
echo "Please type yes or no."
echo
read -r answer
done
if [[ "$answer" == "no" ]]; then
return
fi
# All safety checks done. Delete the cache.
rm -rfv "${cache}"
echo "Cache deleted."
}
download() { download() {
local source=($@) local source=($@)
for i in "${source[@]}" ; do for i in "${source[@]}" ; do
@ -199,6 +249,9 @@ download() {
} }
help() { help() {
echo "${0##*/}"
echo "Released under the terms of the Common Public Attribution License Version 1.0"
echo -e "This is a Stormux project: https://stormux.org\n"
echo -e "Usage:\n" echo -e "Usage:\n"
echo "With no arguments, open the game launcher." echo "With no arguments, open the game launcher."
for i in "${!command[@]}" ; do for i in "${!command[@]}" ; do
@ -313,7 +366,7 @@ game_launcher() {
--no-tags \ --no-tags \
--menu "Please select a game to play" 0 0 0 "${menuList[@]}" --stdout)" --menu "Please select a game to play" 0 0 0 "${menuList[@]}" --stdout)"
else else
local game="$(grep "^${1}|" "${configFile}")" local game="$(grep "^${1}|" "${configFile}" 2> /dev/null)"
game="${game%|*}" game="${game%|*}"
if [[ -z "$game" ]]; then if [[ -z "$game" ]]; then
echo "Game $1 not found." echo "Game $1 not found."
@ -350,7 +403,12 @@ game_launcher() {
qjoypad -T "${game%|*}" 2> /dev/null & qjoypad -T "${game%|*}" 2> /dev/null &
fi fi
fi fi
WINEPREFIX="${HOME}/.local/wine/${game%|*}" wine start /realtime /d "${winePath}" "$wineExec" export WINEPREFIX="${HOME}/.local/wine/${game%|*}"
if [[ -d "${WINEPREFIX}/drive_c/windows/syswow64" ]]; then
wine64 start /realtime /d "${winePath}" "$wineExec"
else
wine start /realtime /d "${winePath}" "$wineExec"
fi
fi fi
exit 0 exit 0
} }
@ -363,7 +421,7 @@ game_launcher() {
add_launcher() { add_launcher() {
local launchSettings="${game,,}" local launchSettings="${game,,}"
launchSettings="${launchSettings//[[:space:]]/-}|${1}|${game}" launchSettings="${launchSettings//[[:space:]]/-}|${1}|${game}"
if ! grep -F -q -x "${launchSettings}" "${configFile}" ; then if ! grep -F -q -x "${launchSettings}" "${configFile}" 2> /dev/null ; then
echo "${launchSettings}" >> "${configFile}" echo "${launchSettings}" >> "${configFile}"
sort -o "${configFile}" "${configFile}" sort -o "${configFile}" "${configFile}"
# Remove .lnk files because they don't work. # Remove .lnk files because they don't work.
@ -432,7 +490,11 @@ gameList=(
"Lone Wolf" "Lone Wolf"
"Manamon" "Manamon"
"Manamon 2" "Manamon 2"
"MudSplat French"
"MudSplat English"
"MudSplat Swedish"
"Oh Shit!" "Oh Shit!"
"Pacman Talks"
"Palace Punch Up" "Palace Punch Up"
"Paladin of the Sky" "Paladin of the Sky"
"Perilous Hearts" "Perilous Hearts"
@ -440,19 +502,23 @@ gameList=(
"Q9" "Q9"
"Revenge of the Undead" "Revenge of the Undead"
"Rhythm Rage" "Rhythm Rage"
#"River raiders"
"RS Games" "RS Games"
"Run For Your Life" "Run For Your Life"
"Sequence Storm" "Sequence Storm"
"Shades of Doom" "Shades of Doom"
"Slender Lost Vision"
"Super Egg Hunt" "Super Egg Hunt"
"Super Liam" "Super Liam"
"Survive the Wild" "Survive the Wild"
"Swamp" "Swamp"
"Technoshock" "Technoshock"
"The Blind Swordsman" "The Blind Swordsman"
#"The Gate"
"The Great Toy Robbery" "The Great Toy Robbery"
#"Three D velocity" #"Three D velocity"
"Top Speed 3" "Top Speed 3"
"Triple Triad"
"Undead Assault" "Undead Assault"
) )
@ -464,10 +530,12 @@ fi
# Array of command line arguments # Array of command line arguments
declare -A command=( declare -A command=(
[c]="Check your system for necessary components." [c]="Check your system for necessary components."
[d]="debug mode, wine will be much more verbose when games are launched with this flag." [C]="Clear the cache. All game installers will be deleted."
[d]="Debug mode, wine will be much more verbose when games are launched with this flag."
[h]="This help screen." [h]="This help screen."
[i]="Install games." [i]="Install games."
[l:]="launch given game without interactive audiogame-manager menu specified by its wine bottle." [L]="Display license information."
[l:]="Launch given game without interactive audiogame-manager menu specified by its wine bottle."
[N]="No cache, delete the installer after it has been extracted." [N]="No cache, delete the installer after it has been extracted."
[r]="Remove a game. This will delete all game data." [r]="Remove a game. This will delete all game data."
) )
@ -478,12 +546,14 @@ args="${args//[[:space:]]/}"
while getopts "${args}" i ; do while getopts "${args}" i ; do
case "$i" in case "$i" in
c) checklist;; c) checklist;;
C) clear_cache;;
d) d)
unset WINEDEBUG unset WINEDEBUG
game_launcher game_launcher
;; ;;
h) help;; h) help;;
i) game_installer;; i) game_installer;;
L) license;;
l) game_launcher "${OPTARG}";; l) game_launcher "${OPTARG}";;
N) noCache="true";; N) noCache="true";;
r) game_removal;; r) game_removal;;
@ -536,11 +606,11 @@ case "${game}" in
;; ;;
"Chopper Challenge") "Chopper Challenge")
# Freezes at menu # Freezes at menu
install_wine_bottle vb6run dx8vb setupapi install_wine_bottle vb6run dx8vb speechsdk
download "https://www.agarchive.net/games/XSight/chopper%20challenge%20setup.exe" download "https://www.agarchive.net/games/XSight/chopper%20challenge%20setup.exe"
wine "${cache}/chopper challenge setup.exe" & wine "${cache}/chopper challenge setup.exe" /silent &
xdotool sleep 5 type y 2> /dev/null xdotool sleep 5 key y 2> /dev/null
xdotool sleep 1 key --clearmodifiers alt+n sleep 2 key alt+n sleep 2 key alt+n sleep 2 key alt+i sleep 5 key alt+f 2> /dev/null wineserver -w
echo "$USER|n/a" >> "$WINEPREFIX/drive_c/Program Files/x-sight interactive/chopper challenge/config.dat" echo "$USER|n/a" >> "$WINEPREFIX/drive_c/Program Files/x-sight interactive/chopper challenge/config.dat"
add_launcher "c:\Program Files\x-sight interactive\chopper challenge\Chopper.exe" add_launcher "c:\Program Files\x-sight interactive\chopper challenge\Chopper.exe"
;; ;;
@ -758,6 +828,36 @@ EOF
wine "${cache}/manamon2_installer.exe" /silent wine "${cache}/manamon2_installer.exe" /silent
add_launcher "c:\Program Files\VGStorm.com\Manamon 2\rpg.exe" add_launcher "c:\Program Files\VGStorm.com\Manamon 2\rpg.exe"
;; ;;
"MudSplat English")
a="a"
f="f"
i="i"
n="n"
;&
"MudSplat French")
# Variables may be already set for English installation, so make sure not to overwrite them.
a="${a:-a}"
f="${f:-t}"
i="${i:-i}"
n="${n:-s}"
;&
"MudSplat Swedish")
# Variables may be already set for French installation, so make sure not to overwrite them.
a="${a:-a}"
f="${f:-f}"
i="${i:-i}"
n="${n:-n}"
install_wine_bottle
download "https://www.agarchive.net/games/other/Mudsplat-install.exe"
wine "${cache}/Mudsplat-install.exe" &
# Select the language.
xdotool sleep 10 type --clearmodifiers ${game:9:1} 2> /dev/null
xdotool sleep 1 key --clearmodifiers Return sleep 1 key alt+${n} sleep 1 key alt+${a} sleep 1 key alt+${n} sleep 1 key space sleep 1 key alt+${n} sleep 1 key alt+${n} sleep 1 key alt+${i} sleep 10 key space sleep 1 key alt+${f} 2> /dev/null
wineserver -w
mudsplatLauncher="$(find "$WINEPREFIX/drive_c/Program Files/TiM/MudSplat" -name 'mudsplat-*.exe')"
mudsplatLauncher="${mudsplatLauncher##*/}"
add_launcher "c:\Program Files\TiM\MudSplat\\${mudsplatLauncher}"
;;
"Oh Shit!") "Oh Shit!")
export winVer="win7" export winVer="win7"
install_wine_bottle speechsdk install_wine_bottle speechsdk
@ -766,6 +866,14 @@ 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\oh_shit\OhShit.exe" add_launcher "c:\Program Files\oh_shit\OhShit.exe"
;; ;;
"Pacman Talks")
install_wine_bottle
download "http://www.gmagames.com/pmt101.exe"
wine "${cache}/pmt101.exe" /silent &
xdotool sleep 10 key --clearmodifiers alt+y 2> /dev/null
wineserver -w
add_launcher "c:\Program Files\Pacman Talks\pmt.exe"
;;
"Palace Punch Up") "Palace Punch Up")
install_wine_bottle speechsdk install_wine_bottle speechsdk
download "https://www.agarchive.net/games/blastbay/palace%20punch-up%20setup.exe" download "https://www.agarchive.net/games/blastbay/palace%20punch-up%20setup.exe"
@ -815,6 +923,15 @@ 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\rhythm rage/game.exe" add_launcher "c:\Program Files\rhythm rage/game.exe"
;; ;;
"River Raiders")
# Choppy sound under water.
install_wine_bottle
download "https://www.agarchive.net/games/XSight/River%20Raiders%201.3.5.exe"
wine "$cache/River Raiders 1.3.5.exe" /silent &
xdotool sleep 5 type y 2> /dev/null
xdotool sleep 1 key --clearmodifiers alt+n sleep 2 key alt+n sleep 2 key alt+n sleep 2 key alt+i sleep 5 key alt+f 2> /dev/null
add_launcher "c:\Program Files\River Raiders\raid.exe"
;;
"RS Games") "RS Games")
export winVer="win7" export winVer="win7"
install_wine_bottle speechsdk install_wine_bottle speechsdk
@ -854,6 +971,13 @@ EOF
wine "${cache}/sod20022.exe" /silent wine "${cache}/sod20022.exe" /silent
add_launcher "c:\Program Files\Shades of Doom 2.0\sod.exe" add_launcher "c:\Program Files\Shades of Doom 2.0\sod.exe"
;; ;;
"Slender Lost Vision")
export winVer="win7"
install_wine_bottle
download "https://www.iamtalon.me/games/slender.zip"
unzip -d "$WINEPREFIX/drive_c/Program Files/" "${cache}/slender.zip"
add_launcher "c:\Program Files\slender\slender.exe"
;;
"Super Egg Hunt") "Super Egg Hunt")
install_wine_bottle install_wine_bottle
download "http://files.l-works.net/superegghuntsetup.exe" download "http://files.l-works.net/superegghuntsetup.exe"
@ -900,10 +1024,17 @@ EOF
;; ;;
"The Blind Swordsman") "The Blind Swordsman")
install_wine_bottle install_wine_bottle
download "http://www.evildogserver.com/theblindswordsman/theblindswordsmanPC.zip" download "https://www.agarchive.net/games/other/the%20blind%20swordsmanPC.zip"
unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/the blind swordsmanPC.zip" unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/the blind swordsmanPC.zip"
add_launcher "c:\Program Files\TheBlindSwordsman.exe" add_launcher "c:\Program Files\TheBlindSwordsman.exe"
;; ;;
"The Gate")
export winVer="win7"
install_wine_bottle
download "http://www.vgstorm.com/the_gate_installer.exe"
wine "${cache}/the_gate_installer.exe" /silent
add_launcher "c:\Program Files\VGStorm.com\The Gate\gate.exe"
;;
"The Great Toy Robbery") "The Great Toy Robbery")
export winVer="win7" export winVer="win7"
install_wine_bottle speechsdk install_wine_bottle speechsdk
@ -926,6 +1057,14 @@ EOF
wine "${cache}/Tspeed_3.0.3.exe" /silent wine "${cache}/Tspeed_3.0.3.exe" /silent
add_launcher "c:\Program Files\Playing in the dark\Top Speed 3\TopSpeed.exe" add_launcher "c:\Program Files\Playing in the dark\Top Speed 3\TopSpeed.exe"
;; ;;
"Triple Triad")
export winVer="win7"
install_wine_bottle vb6run dx8vb speechsdk
download "https://www.kaldobsky.com/audiogames/tripletriad.zip"
unzip -d "$WINEPREFIX/drive_c/Program Files/Triple Triad" "${cache}/tripletriad.zip"
wine "c:\Program Files\Triple Triad\Checkup.exe" /verysilent
add_launcher "c:\Program Files\Triple Triad\TripleTriad.exe"
;;
"Undead Assault") "Undead Assault")
export winVer="win7" export winVer="win7"
install_wine_bottle speechsdk install_wine_bottle speechsdk

View File

@ -1,4 +1,43 @@
#!/bin/bash #!/bin/bash
#
# âe contents of this file are subject to the Common Public Attribution
# License Version 1.0 (the âcenseâ you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# https://opensource.org/licenses/CPAL-1.0. The License is based on the Mozilla Public License Version
# 1.1 but Sections 14 and 15 have been added to cover use of software over a
# computer network and provide for limited attribution for the Original
# Developer. In addition, Exhibit A has been modified to be consistent with
# Exhibit B.
#
# Software distributed under the License is distributed on an â ISâasis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is audiogame manager.
#
# The Original Developer is not the Initial Developer and is . If
# left blank, the Original Developer is the Initial Developer.
#
# The Initial Developer of the Original Code is Billy "Storm Dragon" Wolfe. All portions of
# the code written by Billy Wolfe are Copyright (c) 2020. All Rights
# Reserved.
#
# Contributor Michael Taboada.
#
# Contributor Jeremiah Ticket.
#
# Attribution Copyright Notice: Audiogame manager copyright 2020 Storm Dragon. All rights reserved.
#
# Attribution Phrase (not exceeding 10 words): A Stormux project
#
# Attribution URL: https://stormgames.wolfe.casa
#
# Graphic Image as provided in the Covered Code, if any.
#
# Display of Attribution Information is required in Larger
# Works which are defined in the CPAL as a work which combines Covered Code
# or portions thereof with code not governed by the terms of the CPAL.
for i in dialog unix2dos; do for i in dialog unix2dos; do
if ! command -v $i &> /dev/null ; then if ! command -v $i &> /dev/null ; then

View File

@ -0,0 +1,49 @@
#!/usr/bin/env bash
#
# âe contents of this file are subject to the Common Public Attribution
# License Version 1.0 (the âcenseâ you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# https://opensource.org/licenses/CPAL-1.0. The License is based on the Mozilla Public License Version
# 1.1 but Sections 14 and 15 have been added to cover use of software over a
# computer network and provide for limited attribution for the Original
# Developer. In addition, Exhibit A has been modified to be consistent with
# Exhibit B.
#
# Software distributed under the License is distributed on an â ISâasis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is audiogame manager.
#
# The Original Developer is not the Initial Developer and is . If
# left blank, the Original Developer is the Initial Developer.
#
# The Initial Developer of the Original Code is Billy "Storm Dragon" Wolfe. All portions of
# the code written by Billy Wolfe are Copyright (c) 2020. All Rights
# Reserved.
#
# Contributor Michael Taboada.
#
# Contributor Jeremiah Ticket.
#
# Attribution Copyright Notice: Audiogame manager copyright 2020 Storm Dragon. All rights reserved.
#
# Attribution Phrase (not exceeding 10 words): A Stormux project
#
# Attribution URL: https://stormgames.wolfe.casa
#
# Graphic Image as provided in the Covered Code, if any.
#
# Display of Attribution Information is required in Larger
# Works which are defined in the CPAL as a work which combines Covered Code
# or portions thereof with code not governed by the terms of the CPAL.
cache="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/cache"
url="https://tunmi13.dev/projects/rotu.zip"
(rm -v "${cache}/rotu.zip"
wget -O "${cache}/rotu.zip" "$url" || exit 1
unzip -od "$HOME/.local/wine/revenge-of-the-undead/drive_c/Program Files" "${cache}/rotu.zip"
rm -fv "$HOME/.local/wine/drive_c/Program Files/rotu/nvdaControllerClient32.dll") | dialog --progressbox "updating Revenge of the undead, please wait..." -1 -1
exit 0

View File

@ -1,4 +1,43 @@
#!/bin/bash #!/bin/bash
#
# âe contents of this file are subject to the Common Public Attribution
# License Version 1.0 (the âcenseâ you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# https://opensource.org/licenses/CPAL-1.0. The License is based on the Mozilla Public License Version
# 1.1 but Sections 14 and 15 have been added to cover use of software over a
# computer network and provide for limited attribution for the Original
# Developer. In addition, Exhibit A has been modified to be consistent with
# Exhibit B.
#
# Software distributed under the License is distributed on an â ISâasis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is audiogame manager.
#
# The Original Developer is not the Initial Developer and is . If
# left blank, the Original Developer is the Initial Developer.
#
# The Initial Developer of the Original Code is Billy "Storm Dragon" Wolfe. All portions of
# the code written by Billy Wolfe are Copyright (c) 2020. All Rights
# Reserved.
#
# Contributor Michael Taboada.
#
# Contributor Jeremiah Ticket.
#
# Attribution Copyright Notice: Audiogame manager copyright 2020 Storm Dragon. All rights reserved.
#
# Attribution Phrase (not exceeding 10 words): A Stormux project
#
# Attribution URL: https://stormgames.wolfe.casa
#
# Graphic Image as provided in the Covered Code, if any.
#
# Display of Attribution Information is required in Larger
# Works which are defined in the CPAL as a work which combines Covered Code
# or portions thereof with code not governed by the terms of the CPAL.
updateURL="https://www.kaldobsky.com/audiogames/SwampPatch.zip" updateURL="https://www.kaldobsky.com/audiogames/SwampPatch.zip"

View File

@ -1,4 +1,43 @@
#!/bin/bash #!/bin/bash
#
# âe contents of this file are subject to the Common Public Attribution
# License Version 1.0 (the âcenseâ you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# https://opensource.org/licenses/CPAL-1.0. The License is based on the Mozilla Public License Version
# 1.1 but Sections 14 and 15 have been added to cover use of software over a
# computer network and provide for limited attribution for the Original
# Developer. In addition, Exhibit A has been modified to be consistent with
# Exhibit B.
#
# Software distributed under the License is distributed on an â ISâasis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is audiogame manager.
#
# The Original Developer is not the Initial Developer and is . If
# left blank, the Original Developer is the Initial Developer.
#
# The Initial Developer of the Original Code is Billy "Storm Dragon" Wolfe. All portions of
# the code written by Billy Wolfe are Copyright (c) 2020. All Rights
# Reserved.
#
# Contributor Michael Taboada.
#
# Contributor Jeremiah Ticket.
#
# Attribution Copyright Notice: Audiogame manager copyright 2020 Storm Dragon. All rights reserved.
#
# Attribution Phrase (not exceeding 10 words): A Stormux project
#
# Attribution URL: https://stormgames.wolfe.casa
#
# Graphic Image as provided in the Covered Code, if any.
#
# Display of Attribution Information is required in Larger
# Works which are defined in the CPAL as a work which combines Covered Code
# or portions thereof with code not governed by the terms of the CPAL.
path=${1:-~/.local/wine/top-speed-3/drive_c/Program\ Files/Playing\ in\ the\ dark/Top\ Speed\ 3} path=${1:-~/.local/wine/top-speed-3/drive_c/Program\ Files/Playing\ in\ the\ dark/Top\ Speed\ 3}
echo "Enter URL or IP address for Top Speed 3 Server:" echo "Enter URL or IP address for Top Speed 3 Server:"

View File

@ -0,0 +1,76 @@
#
# Ã contents of this file are subject to the Common Public Attribution
# License Version 1.0 (the ÃenseÃyou may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# https://opensource.org/licenses/CPAL-1.0. The License is based on the Mozilla Public License Version
# 1.1 but Sections 14 and 15 have been added to cover use of software over a
# computer network and provide for limited attribution for the Original
# Developer. In addition, Exhibit A has been modified to be consistent with
# Exhibit B.
#
# Software distributed under the License is distributed on an ÃISÃsis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is audiogame manager.
#
# The Original Developer is not the Initial Developer and is . If
# left blank, the Original Developer is the Initial Developer.
#
# The Initial Developer of the Original Code is Billy "Storm Dragon" Wolfe. All portions of
# the code written by Billy Wolfe are Copyright (c) 2020. All Rights
# Reserved.
#
# Contributor Michael Taboada.
#
# Contributor Jeremiah Ticket.
#
# Attribution Copyright Notice: Audiogame manager copyright 2020 Storm Dragon. All rights reserved.
#
# Attribution Phrase (not exceeding 10 words): A Stormux project
#
# Attribution URL: https://stormgames.wolfe.casa
#
# Graphic Image as provided in the Covered Code, if any.
#
# Display of Attribution Information is required in Larger
# Works which are defined in the CPAL as a work which combines Covered Code
# or portions thereof with code not governed by the terms of the CPAL.
# Allows you to select a wine prefix to run with audiogame manager
#Get Working Directory
tell application "Finder"
set currentPath to container of (path to me) as alias
end tell
#format Converters
on convertPathToAlias(thePath)
tell application "System Events"
try
return (path of disk item (thePath as string)) as alias
on error
return (path of disk item (path of thePath) as string) as alias
end try
end tell
end convertPathToAlias
on convertPathToPOSIXString(thePath)
tell application "System Events"
try
set thePath to path of disk item (thePath as string)
on error
set thePath to path of thePath
end try
end tell
return POSIX path of thePath
end convertPathToPOSIXString
set currentPath to convertPathToPOSIXString(currentPath)
set folderPath to POSIX file "~/.local/wine/"
set folderPath to convertPathToAlias(folderPath)
set gameFolder to choose folder with prompt "Choose your game and press enter:" default location folderPath
set gameFolder to convertPathToPOSIXString(gameFolder)
set gameFolder to quoted form of gameFolder
set gameName to do shell script ("basename " & gameFolder)
do shell script "/usr/local/bin/bash -l " & currentPath & "../audiogame-manager.sh -l " & gameName & " &> /dev/null &"
do shell script "say -v alex Launching " & gameName & ", please wait..."

View File

@ -3,24 +3,47 @@
# Set the default wine voice based on installed options. # Set the default wine voice based on installed options.
# Rate can be specified as a numeric argument to this script, 1 through 9. # Rate can be specified as a numeric argument to this script, 1 through 9.
# The default rate is 7 # The default rate is 7
# #
# Copyright 2020, Storm Dragon, <storm_dragon@linux-a11y.org> # ■The contents of this file are subject to the Common Public Attribution
# License Version 1.0 (the ■License■); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# https://opensource.org/licenses/CPAL-1.0. The License is based on the Mozilla Public License Version
# 1.1 but Sections 14 and 15 have been added to cover use of software over a
# computer network and provide for limited attribution for the Original
# Developer. In addition, Exhibit A has been modified to be consistent with
# Exhibit B.
# #
# This is free software; you can redistribute it and/or modify it under the # Software distributed under the License is distributed on an ■AS IS■ basis,
# terms of the GNU General Public License as published by the Free # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# Software Foundation; either version 3, or (at your option) any later # for the specific language governing rights and limitations under the
# version. # License.
# #
# This software is distributed in the hope that it will be useful, # The Original Code is audiogame manager.
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # The Original Developer is not the Initial Developer and is . If
# along with this package; see the file COPYING. If not, write to the Free # left blank, the Original Developer is the Initial Developer.
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
# #
# The Initial Developer of the Original Code is Billy "Storm Dragon" Wolfe. All portions of
# the code written by Billy Wolfe are Copyright (c) 2020. All Rights
# Reserved.
#
# Contributor Michael Taboada.
#
# Contributor Jeremiah Ticket.
#
# Attribution Copyright Notice: Audiogame manager copyright 2020 Storm Dragon. All rights reserved.
#
# Attribution Phrase (not exceeding 10 words): A Stormux project
#
# Attribution URL: https://stormgames.wolfe.casa
#
# Graphic Image as provided in the Covered Code, if any.
#
# Display of Attribution Information is required in Larger
# Works which are defined in the CPAL as a work which combines Covered Code
# or portions thereof with code not governed by the terms of the CPAL.
#--code-- #--code--
# Settings to improve accessibility of dialog. # Settings to improve accessibility of dialog.

View File

@ -1,4 +1,43 @@
#!/bin/bash #!/bin/bash
#
# âe contents of this file are subject to the Common Public Attribution
# License Version 1.0 (the âcenseâ you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# https://opensource.org/licenses/CPAL-1.0. The License is based on the Mozilla Public License Version
# 1.1 but Sections 14 and 15 have been added to cover use of software over a
# computer network and provide for limited attribution for the Original
# Developer. In addition, Exhibit A has been modified to be consistent with
# Exhibit B.
#
# Software distributed under the License is distributed on an â ISâasis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is audiogame manager.
#
# The Original Developer is not the Initial Developer and is . If
# left blank, the Original Developer is the Initial Developer.
#
# The Initial Developer of the Original Code is Billy "Storm Dragon" Wolfe. All portions of
# the code written by Billy Wolfe are Copyright (c) 2020. All Rights
# Reserved.
#
# Contributor Michael Taboada.
#
# Contributor Jeremiah Ticket.
#
# Attribution Copyright Notice: Audiogame manager copyright 2020 Storm Dragon. All rights reserved.
#
# Attribution Phrase (not exceeding 10 words): A Stormux project
#
# Attribution URL: https://stormgames.wolfe.casa
#
# Graphic Image as provided in the Covered Code, if any.
#
# Display of Attribution Information is required in Larger
# Works which are defined in the CPAL as a work which combines Covered Code
# or portions thereof with code not governed by the terms of the CPAL.
export WINEARCH=win32 export WINEARCH=win32