summarylogtreecommitdiffstats
path: root/gog-dragonsphere
diff options
context:
space:
mode:
authorAndré Fettouhi2015-06-09 21:39:25 +0200
committerAndré Fettouhi2015-06-09 21:39:25 +0200
commit75fa595eb2b7e246dd36167c4f6fe4a931b3a1f5 (patch)
treefafb45fdc167d698dd15c8a610c7b3eeecec6a35 /gog-dragonsphere
downloadaur-75fa595eb2b7e246dd36167c4f6fe4a931b3a1f5.tar.gz
Initial import
Diffstat (limited to 'gog-dragonsphere')
-rw-r--r--gog-dragonsphere13
1 files changed, 13 insertions, 0 deletions
diff --git a/gog-dragonsphere b/gog-dragonsphere
new file mode 100644
index 000000000000..be8900870a16
--- /dev/null
+++ b/gog-dragonsphere
@@ -0,0 +1,13 @@
+#!/usr/bin/bash
+gogdir="/opt/gog/dragonsphere"
+homedir="$HOME/.gog/dragonsphere"
+mkdir -p "$homedir"/{game,config/data/DRAGON}
+
+if [[ ! -e "$homedir/config/dosboxDragonsphere.conf" ]]; then
+ cp "$gogdir/dosboxDragonsphere.conf" "$homedir/config/dosboxDragonsphere.conf"
+fi
+
+unionfs "$homedir/config=RW:$gogdir=RO" "$homedir/game"
+"$homedir"/game/start.sh
+fusermount -u "$homedir/game"
+