aboutsummarylogtreecommitdiffstats
path: root/daggerfall-unity
diff options
context:
space:
mode:
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