Add run winetricks and glide setup
This commit is contained in:
parent
86bc1b0a7d
commit
143e9bb6fb
24
d2-setup.sh
24
d2-setup.sh
@ -92,11 +92,24 @@ runGame(){
|
||||
exit 0;
|
||||
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(){
|
||||
WINEPREFIX="${PREFIX}" WINEARCH="${ARCH}" winecfg
|
||||
}
|
||||
@ -131,6 +144,15 @@ case "${1}" in
|
||||
cfg|-c)
|
||||
runWinecfg
|
||||
;;
|
||||
|
||||
rg| --run-glide)
|
||||
run_glide
|
||||
;;
|
||||
|
||||
tricks)
|
||||
run_tricks "${1}" "${2}"
|
||||
;;
|
||||
|
||||
all|-a)
|
||||
getDeps
|
||||
installD2
|
||||
|
Loading…
x
Reference in New Issue
Block a user