summarylogtreecommitdiffstats
path: root/gog-heroes-of-might-and-magic-3-complete-edition-map-editor
diff options
context:
space:
mode:
Diffstat (limited to 'gog-heroes-of-might-and-magic-3-complete-edition-map-editor')
-rwxr-xr-xgog-heroes-of-might-and-magic-3-complete-edition-map-editor10
1 files changed, 10 insertions, 0 deletions
diff --git a/gog-heroes-of-might-and-magic-3-complete-edition-map-editor b/gog-heroes-of-might-and-magic-3-complete-edition-map-editor
new file mode 100755
index 000000000000..b781428335f8
--- /dev/null
+++ b/gog-heroes-of-might-and-magic-3-complete-edition-map-editor
@@ -0,0 +1,10 @@
+#!/bin/bash
+unset WINEPREFIX
+export WINEPREFIX="$HOME"/.local/share/gog-heroes-of-might-and-magic-3-complete-edition
+if [ ! -d "$WINEPREFIX" ]
+then
+ mkdir -p "$WINEPREFIX"
+ wineboot -i
+ regedit /usr/share/gog-heroes-of-might-and-magic-3-complete-edition/local_machine.reg
+fi
+wine /opt/gog/heroes-of-might-and-magic-3-complete-edition/h3maped.exe "$@"