Add run winetricks and glide setup

This commit is contained in:
mollusk 2021-01-22 13:40:34 -07:00
parent 86bc1b0a7d
commit 143e9bb6fb

View File

@ -92,11 +92,24 @@ runGame(){
exit 0; exit 0;
fi fi
WINEPREFIX="${PREFIX}" WINEARCH="${ARCH}" wine "Diablo II.exe" "-3dfx" WINEPREFIX="${PREFIX}" WINEARCH="${ARCH}" wine "Diablo II.exe"
} }
run_glide(){
cd ${PREFIX}/drive_c/"Program Files"/"Diablo II"/
WINEPREFIX="${PREFIX}" WINEARCH="${ARCH}" wine "glide-init.exe"
}
run_tricks(){
WINEPREFIX="${PREFIX}" WINEARCH="${ARCH}" winetricks "${1}" "${2}"
}
runWinecfg(){ runWinecfg(){
WINEPREFIX="${PREFIX}" WINEARCH="${ARCH}" winecfg WINEPREFIX="${PREFIX}" WINEARCH="${ARCH}" winecfg
} }
@ -131,6 +144,15 @@ case "${1}" in
cfg|-c) cfg|-c)
runWinecfg runWinecfg
;; ;;
rg| --run-glide)
run_glide
;;
tricks)
run_tricks "${1}" "${2}"
;;
all|-a) all|-a)
getDeps getDeps
installD2 installD2