summaryrefslogtreecommitdiff
path: root/pcr/higan-qt/higan
diff options
context:
space:
mode:
authorJorge López Seijas <jorginho@lavabit.com>2013-02-13 19:48:57 +0100
committerJorge López Seijas <jorginho@lavabit.com>2013-02-13 19:48:57 +0100
commit592426342fe440467fe4f588b260d35bc507483a (patch)
treee2b0f3ac98bc80a45c698f3fec884f720b1c797b /pcr/higan-qt/higan
parentfd3539acfcc529b02d3abbb185eed43ba4e87df5 (diff)
Higan-qt
Diffstat (limited to 'pcr/higan-qt/higan')
-rwxr-xr-xpcr/higan-qt/higan13
1 files changed, 13 insertions, 0 deletions
diff --git a/pcr/higan-qt/higan b/pcr/higan-qt/higan
new file mode 100755
index 000000000..29fc0b7bb
--- /dev/null
+++ b/pcr/higan-qt/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 "$@"