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/steam | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) (limited to 'templates/steam') diff --git a/templates/steam b/templates/steam index 3321e92..2516277 100644 --- a/templates/steam +++ b/templates/steam @@ -1,9 +1,25 @@ -PREFIX="steam" -SIZE="1280x960" -GPATH="c:/program files/steam/steam.exe" +if loaded wine; then + PREFIX="steam" + #SIZE="1280x960" + GPATH="c:/program files/steam/steam.exe" -steamapp () { - [[ $# > 0 ]] && export ARGS="-applaunch ${=@}" -} + steamapp () { + [[ $# -gt 0 ]] && export ARGS="-applaunch ${=@}" + } +else + GPATH=steam + SIZE=1680x1050 + + steamapp () { + [[ $# -gt 0 ]] && export ARGS="steam://rungameid/$1" + } + + # force cleanup -- yields a normal shutdown + steam_cleanup () { + [[ $1 == force ]] && exc steam -shutdown + } + + OVERRIDE cleanup +fi # vim:ft=sh -- cgit v1.2.3