diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2019-02-24 18:14:41 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2019-02-24 18:14:41 +0100 |
commit | e9bd676157d3809f31a1c9857f3f1017738ef8e9 (patch) | |
tree | 0c06330a2534fe8c3ca2799d388b5a90e9f334d6 /play.sh | |
parent | a863a96e815a5740cb7becc9b45527dfc8b27c56 (diff) | |
download | play-e9bd676157d3809f31a1c9857f3f1017738ef8e9.tar.gz play-e9bd676157d3809f31a1c9857f3f1017738ef8e9.tar.bz2 play-e9bd676157d3809f31a1c9857f3f1017738ef8e9.zip |
_prepare_funs phase
Diffstat (limited to '')
-rwxr-xr-x | play.sh | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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" |