aboutsummarylogtreecommitdiffstats
path: root/daggerfall-unity
diff options
context:
space:
mode:
authorJames2020-04-06 16:30:57 +0100
committerJames2020-04-06 16:30:57 +0100
commit5a5ed34b069623869bbdd34dc78bd01082ad3204 (patch)
treefe058c7ad7f16101edbdf940766e16c2c5319006 /daggerfall-unity
downloadaur-5a5ed34b069623869bbdd34dc78bd01082ad3204.tar.gz
initial commit
Diffstat (limited to 'daggerfall-unity')
-rwxr-xr-xdaggerfall-unity16
1 files changed, 16 insertions, 0 deletions
diff --git a/daggerfall-unity b/daggerfall-unity
new file mode 100755
index 000000000000..46695f7c6e0b
--- /dev/null
+++ b/daggerfall-unity
@@ -0,0 +1,16 @@
+#!/bin/bash
+DATA_DIR="/opt/daggerfall-unity/data"
+CONFIG_DIR="$HOME/.config/unity3d/Daggerfall Workshop/Daggerfall Unity"
+CONFIG_FILE="settings.ini"
+CONFIG_TEMPLATE="/usr/share/daggerfall-unity/settings-template.ini"
+
+if [[ ! -f $CONFIG_DIR/$CONFIG_FILE ]]; then
+ echo "No existing config file found. Creating default"
+ if [[ ! -d "$CONFIG_DIR" ]]; then
+ echo "No directory for storing the user data. Creating folder"
+ mkdir -p "$CONFIG_DIR"
+ fi
+ cp "$CONFIG_TEMPLATE" "$CONFIG_DIR/$CONFIG_FILE"
+fi
+
+/opt/daggerfall-unity/engine/DaggerfallUnity.x86_64