summaryrefslogtreecommitdiff
path: root/templates/wine
blob: e6c8d2ed6567346e57e9ccfa15d87991efc1a13c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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