summaryrefslogtreecommitdiffstats
path: root/games/epsxe/wrapper.epsxe
diff options
context:
space:
mode:
author soyalexman <soyalexman@soyalexman.com>2010-05-12 23:29:18 +0200
committer Robby Workman <rworkman@slackbuilds.org>2010-05-12 23:29:18 +0200
commita9e3b54f5f88271deaf586a1a736955a3bb33dde (patch)
tree2394cb9449f55eb85f550d15b3852c9a72ac8122 /games/epsxe/wrapper.epsxe
parente1ea50212b57c7c82e455548ea70fa2455259658 (diff)
downloadslackbuilds-a9e3b54f5f88271deaf586a1a736955a3bb33dde.tar.gz
slackbuilds-a9e3b54f5f88271deaf586a1a736955a3bb33dde.tar.xz
games/epsxe: Added to 12.2 repository
Diffstat (limited to '')
-rw-r--r--games/epsxe/wrapper.epsxe25
1 files changed, 25 insertions, 0 deletions
diff --git a/games/epsxe/wrapper.epsxe b/games/epsxe/wrapper.epsxe
new file mode 100644
index 0000000000..af0adb9999
--- /dev/null
+++ b/games/epsxe/wrapper.epsxe
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# This script has 2 reasons to exist.
+# 1) Run the real executable, since it looks for the plugins in the same
+# directory where it is located; therefore, the file structure given
+# by the epsxe team must be preserved.
+# 2) Check if the user's $HOME has a ".epsxe" directory. This is only a way
+# to have links to the plugins directory, that was given write permissions
+# to the games group.
+
+# Check for the $HOME/.epsxe dir.
+if [ ! -d $HOME/.epsxe ]; then
+ mkdir -p $HOME/.epsxe
+ cd $HOME/.epsxe
+ ln -s @INSTALLDIR@/cfg cfg
+ ln -s @INSTALLDIR@/bios bios
+ ln -s @INSTALLDIR@/cheats cheats
+ ln -s @INSTALLDIR@/memcards memcards
+ ln -s @INSTALLDIR@/plugins plugins
+ cd -
+fi
+
+# Run the program
+@INSTALLDIR@/epsxe
+