merge wt-prefix64 into wt-prefix, autodetect WINEARCH

This commit is contained in:
Martinez 2016-01-10 14:23:31 +01:00
parent db3624244a
commit b840734581

View file

@ -67,14 +67,16 @@ zres () {
}
# winetricks tools
wt-prefix64() {
export WINEPREFIX="$HOME/.local/share/wineprefixes/$1"
unset WINEARCH
}
wt-prefix() {
wt-prefix64 "$1"
export WINEPREFIX="$HOME/.local/share/wineprefixes/$1"
grep "#arch=win32" "${WINEPREFIX}/system.reg" > /dev/null
if [[ $? -eq 0 ]]; then
export WINEARCH="win32"
else
unset WINEARCH
fi
}
wt-goto_c() {