From e9bd676157d3809f31a1c9857f3f1017738ef8e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sun, 24 Feb 2019 18:14:41 +0100 Subject: _prepare_funs phase --- play.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/play.sh b/play.sh index 4ec9aff..1871709 100755 --- a/play.sh +++ b/play.sh @@ -268,10 +268,7 @@ done # internal functions {{{1 -_load () { # {{{2 - inherit -e default - source $GAME_PATH - +_prepare_funs () { # {{{2 local funs for phase in $PHASES; do @@ -281,6 +278,14 @@ _load () { # {{{2 done } + +_load () { # {{{2 + inherit -e default + source $GAME_PATH + + _prepare_funs +} + _list () { # {{{2 out "The installed games are:" # on -> sort alphabetically @@ -302,6 +307,7 @@ _new () { # {{{2 [[ -e $DGAME ]] && die "Game file already existing -- aborting!" inherit -e default wine + _prepare_funs setenv [[ ! -e $WINEPREFIX ]] && die "Specified prefix '$PREFIX' does not exist" -- cgit v1.2.3