diff options
Diffstat (limited to 'evewinetricks')
-rw-r--r-- | evewinetricks | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/evewinetricks b/evewinetricks index 6a6141e67b08..cb948ca54d82 100644 --- a/evewinetricks +++ b/evewinetricks @@ -1,20 +1,8 @@ #!/bin/sh -EVECONF=$HOME/.config/CCP/EVE.conf -UCW=$(grep UseCustomWine $EVECONF | cut -d= -f2) -if [ "x$UCW" = "xtrue" ] ;then - CUSTOMWP=$(grep CustomWinePath $EVECONF | cut -d= -f2) - WINEPATH=${CUSTOMWP%/*} - SHAREDIR=$(grep SharedCacheFolder $EVECONF | cut -d= -f2) - WINEPREFIX=${SHAREDIR}wineenv -else - echo "$(basename $0): ERROR: \"Use Custom Wine\" not set!" - exit 1 -fi -if [ ! -x "$WINEPATH/wine" ] ;then - echo "$(basename $0): ERROR: \"$CUSTOMWP\" in \"Custom Wine path\" not found!" - exit 1 -fi +source /opt/evesetup/lib/evelauncher.shlib + +check_custom_wine env WINEPREFIX=$WINEPREFIX \ WINE=$WINEPATH/wine $(which winetricks) "$@" |