From 933a93e4a71591e867182999a7daf8ae3bad5596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Fri, 15 Feb 2013 12:34:32 +0100 Subject: Major overhaul: Support non-wine games * Moved wine support to own template * Added xpad template * Added no-x template for games that don't support being started on another X. * Improved ways template functions work together: - EXPORT now appends - OVERRIDE replaces all the others - in game: command 'super' to call the phases of the templates - super supports "-r tpl" to remove the phase function of tpl --- templates/default | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'templates/default') diff --git a/templates/default b/templates/default index 2f62395..0d1c0ea 100644 --- a/templates/default +++ b/templates/default @@ -4,16 +4,21 @@ default_setupX () { play_setupX } +default_setenv () { + if loaded wine; then + EENV[WINEPREFIX]='{ [[ -z $NO_WINEINSTS ]] && echo $HOME/.wineinsts/$PREFIX; } || echo $PREFIX' + fi + + play_setenv +} + default_prepare () { - play_prepare } default_cleanup () { - play_cleanup } -EENV[WINEPREFIX]='{ [[ -z $NO_WINEINSTS ]] && echo $HOME/.wineinsts/$PREFIX; } || echo $PREFIX' - -EXPORT setupX prepare cleanup +EXPORT prepare cleanup +OVERRIDE setenv setupX # vim:ft=sh -- cgit v1.2.3