summaryrefslogtreecommitdiff
path: root/templates/wine
diff options
context:
space:
mode:
Diffstat (limited to 'templates/wine')
-rw-r--r--templates/wine18
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/wine b/templates/wine
new file mode 100644
index 0000000..e6c8d2e
--- /dev/null
+++ b/templates/wine
@@ -0,0 +1,18 @@
+EENV[WINEPREFIX]='eval echo $PREFIX'
+PREFIX=${PREFIX:-$GAME}
+
+# run wine and therefore the game
+wine_run () {
+ # cd into dir
+ local dir="$(exc winepath -u $GPATH)"
+ exc cd "${dir:h}"
+
+ # start game
+ exc wine start ${dir:t} "$ARGS"
+
+ # wait for wine to shutdown
+ exc wineserver -w
+}
+
+OVERRIDE run
+# vim: ft=sh