summaryrefslogtreecommitdiff
path: root/pcr/higan-gtk/higan
diff options
context:
space:
mode:
authorJorge López Seijas <jorginho@lavabit.com>2013-02-13 19:25:03 +0100
committerJorge López Seijas <jorginho@lavabit.com>2013-02-13 19:25:03 +0100
commit5a31ee74fd54b7e49cc9f94b9513d0c80bf1efc8 (patch)
tree69d61f8be4a78858e13e7b9562924c40a7a96180 /pcr/higan-gtk/higan
parent95f573b1ef312568fd101511250475aa38e6270a (diff)
Add higan
Diffstat (limited to 'pcr/higan-gtk/higan')
-rwxr-xr-xpcr/higan-gtk/higan13
1 files changed, 13 insertions, 0 deletions
diff --git a/pcr/higan-gtk/higan b/pcr/higan-gtk/higan
new file mode 100755
index 000000000..29fc0b7bb
--- /dev/null
+++ b/pcr/higan-gtk/higan
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# Shared folders workaround
+cp -ru /usr/share/higan ~/.config/
+
+# Check for profiles and prompt user with a GUI
+[ -e /usr/bin/higan-accuracy ] && tag1=accuracy
+[ -e /usr/bin/higan-balanced ] && tag2=balanced
+[ -e /usr/bin/higan-performance ] && tag3=performance
+profile="$(Xdialog --stdout --no-tags --title "higan" --radiolist "Choose a profile" 0 0 0 "$tag1" "Accuracy" off "$tag2" "Balanced" off "$tag3" "Performance" off)"
+
+# Launch selected profile
+exec higan-$profile "$@"