A couple changes to update script for Conjury, changed the new source code for importing audiogame-manager to be more in line with coding style of the rest of the code. Also, update script will now correctly source agm no matter from where it is called.
This commit is contained in:
@ -55,7 +55,7 @@ alert() {
|
||||
# Check for latest news
|
||||
check_news() {
|
||||
# For use by update scripts that want to source functions in this file.
|
||||
[ "$AGM_NO_LAUNCH" == "yes" ] && return
|
||||
[[ "$agmNoLaunch" == "true" ]] && return
|
||||
trap return INT
|
||||
# url for news file
|
||||
local newsFile="https://stormgames.wolfe.casa/media/agm.ogg"
|
||||
@ -811,7 +811,7 @@ kill_game() {
|
||||
# launch games that are installed
|
||||
game_launcher() {
|
||||
# For use by update scripts that want to source functions in this file.
|
||||
[ "$AGM_NO_LAUNCH" == "yes" ] && return
|
||||
[[ "$agmNoLaunch" == "true" ]] && return
|
||||
mapfile -t lines < <(sed '/^$/d' "${configFile}" 2> /dev/null)
|
||||
if [[ ${#lines} -eq 0 ]]; then
|
||||
echo "Install some games first."
|
||||
@ -3315,10 +3315,10 @@ export norh=false # Must install a voice, and rhvoice works easily with 64 bit.
|
||||
open_url "https://2mb.games/product/2mb-patron/"
|
||||
;;
|
||||
*)
|
||||
[ "$AGM_NO_LAUNCH" != "yes" ] && [[ -n "${game}" ]] && echo "Game \"${game}\" not found."
|
||||
[ "$AGM_NO_LAUNCH" != "yes" ] && exit 1
|
||||
[[ "$agmNoLaunch" != "true" ]] && [[ -n "${game}" ]] && echo "Game \"${game}\" not found."
|
||||
[[ "$agmNoLaunch" != "true" ]] && exit 1
|
||||
;;
|
||||
esac
|
||||
[ "$AGM_NO_LAUNCH" != "yes" ] && winetricks sandbox
|
||||
[[ "$agmNoLaunch" != "true" ]] && winetricks sandbox
|
||||
|
||||
[ "$AGM_NO_LAUNCH" != "yes" ] && exit 0
|
||||
[[ "$agmNoLaunch" != "true" ]] && exit 0
|
||||
|
Reference in New Issue
Block a user