diff options
Diffstat (limited to 'gog-heroes-of-might-and-magic-3-complete-edition-hota')
-rwxr-xr-x | gog-heroes-of-might-and-magic-3-complete-edition-hota | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gog-heroes-of-might-and-magic-3-complete-edition-hota b/gog-heroes-of-might-and-magic-3-complete-edition-hota new file mode 100755 index 000000000000..a09cfe3a17fe --- /dev/null +++ b/gog-heroes-of-might-and-magic-3-complete-edition-hota @@ -0,0 +1,30 @@ +#!/bin/bash +unset WINEPREFIX +export WINEPREFIX="$HOME"/.local/share/gog-heroes-of-might-and-magic-3-complete-edition +SOURCE=/opt/gog/heroes-of-might-and-magic-3-complete-edition +DATA_DIR="${WINEPREFIX}/HoMM3-data" +UNIONFS_MNT="${WINEPREFIX}/drive_c/GOG Games/HoMM 3 Complete" +if [ ! -d "$WINEPREFIX" ] +then + mkdir -p "$WINEPREFIX" + wineboot -i +fi + +if [ ! -d "${DATA_DIR}" ] +then + mkdir -p "${DATA_DIR}" +fi + +if [ ! -d "${UNIONFS_MNT}" ] +then + mkdir -p "${UNIONFS_MNT}" +fi +if ! mountpoint "${UNIONFS_MNT}" +then + unionfs -o cow,allow_other,relaxed_permissions,use_ino,suid,dev,nonempty ${DATA_DIR}=RW:${SOURCE}=RO "${UNIONFS_MNT}" +fi +cd "${UNIONFS_MNT}" +wine HotA_launcher.exe "$@" +cd .. +fusermount -u "${UNIONFS_MNT}" +#wine HD_Launcher.exe "$@" |