summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2019-02-24 18:14:41 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2019-02-24 18:14:41 +0100
commite9bd676157d3809f31a1c9857f3f1017738ef8e9 (patch)
tree0c06330a2534fe8c3ca2799d388b5a90e9f334d6
parenta863a96e815a5740cb7becc9b45527dfc8b27c56 (diff)
downloadplay-e9bd676157d3809f31a1c9857f3f1017738ef8e9.tar.gz
play-e9bd676157d3809f31a1c9857f3f1017738ef8e9.tar.bz2
play-e9bd676157d3809f31a1c9857f3f1017738ef8e9.zip
_prepare_funs phase
-rwxr-xr-xplay.sh14
1 files 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"