diff options
Diffstat (limited to 'gog-dragonsphere')
-rw-r--r-- | gog-dragonsphere | 13 |
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" + |