summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"