diff --git a/d2-setup.sh b/d2-setup.sh index 027c26e..ed9d1d6 100755 --- a/d2-setup.sh +++ b/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