aboutsummarylogtreecommitdiffstats
path: root/next.sh
diff options
context:
space:
mode:
Diffstat (limited to 'next.sh')
-rw-r--r--next.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/next.sh b/next.sh
index 83886961e78e..e7e34035516b 100644
--- a/next.sh
+++ b/next.sh
@@ -1,4 +1,15 @@
#!/bin/bash
+# Put your SDL2 Config string into this file so it gets automatically set at start
+file="$HOME/neXt/controllerconfigs.txt"
+if [ -e "$file" ]; then
+ contents="`cat $file`";
+ export SDL_GAMECONTROLLERCONFIG="$contents";
+ echo "Set SDL_GAMECONTROLLERCONFIG to $contents";
+else
+ echo "No ~/neXt/controllerconfigs.txt found";
+fi;
+
+
cd /opt/next/
./neXt.x86_64 || ./neXt.x86