merge wt-prefix64 into wt-prefix, autodetect WINEARCH
This commit is contained in:
parent
db3624244a
commit
b840734581
1 changed files with 9 additions and 7 deletions
|
@ -67,14 +67,16 @@ zres () {
|
|||
}
|
||||
|
||||
# winetricks tools
|
||||
wt-prefix64() {
|
||||
export WINEPREFIX="$HOME/.local/share/wineprefixes/$1"
|
||||
unset WINEARCH
|
||||
}
|
||||
|
||||
wt-prefix() {
|
||||
wt-prefix64 "$1"
|
||||
export WINEARCH="win32"
|
||||
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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue