summarylogtreecommitdiffstats
path: root/heroes-evolved.sh
diff options
context:
space:
mode:
Diffstat (limited to 'heroes-evolved.sh')
-rw-r--r--heroes-evolved.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/heroes-evolved.sh b/heroes-evolved.sh
new file mode 100644
index 00000000000..1361e78d417
--- /dev/null
+++ b/heroes-evolved.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env sh
+
+export WINEARCH=win32
+export WINEPREFIX=$HOME/.cache/heroes-evolved
+export WINEDLLOVERRIDES='wininet=b,n'
+export WINEDEBUG=-all
+
+if [[ ! -d $WINEPREFIX ]]; then
+ winetricks -q d3dx9
+ # this is for the full client, using the games permissions
+ #ln -sf /opt/heroes-evolved/s3_web "$WINEPREFIX/drive_c/users/$USER/Application Data/"
+ #ln -sf /opt/heroes-evolved/ "$WINEPREFIX/drive_c/users/$USER/Application Data/Heroes Evolved"
+ cp -r /opt/heroes-evolved/ "$WINEPREFIX/drive_c/users/$USER/Application Data/Heroes Evolved"
+fi
+
+wine "$WINEPREFIX/drive_c/users/$USER/Application Data/Heroes Evolved/Heroes Evolved.exe" &> /dev/null &