From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../files/swordandsworcery-wrapper | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 games-action/swordandsworcery/files/swordandsworcery-wrapper (limited to 'games-action/swordandsworcery/files') diff --git a/games-action/swordandsworcery/files/swordandsworcery-wrapper b/games-action/swordandsworcery/files/swordandsworcery-wrapper new file mode 100644 index 000000000000..ce668c71843a --- /dev/null +++ b/games-action/swordandsworcery/files/swordandsworcery-wrapper @@ -0,0 +1,23 @@ +#!/bin/sh +# Get game directory +GAMEDIR="@GAMEDIR@" +LIB=$GAMEDIR/lib +BIN=$GAMEDIR/bin + +# Ensure the log directory exists +LOGDIR=~/.capy/SwordAndSworcery +[ -e ~/.capy ] || mkdir ~/.capy +[ -e ~/.capy/SwordAndSworcery ] || mkdir ~/.capy/SwordAndSworcery + +# For multi-monitor displays, choose a screen to display on to avoid having +# the game be displayed in the middle across both screens in fullscreen mode +#export SDL_VIDEO_FULLSCREEN_DISPLAY=0 + +# Modify library paths here +export LD_LIBRARY_PATH="$LIB:$LD_LIBRARY_PATH" + +# Run the game and try to log any errors if any +cd "$BIN" +exec ./swordandsworcery $@ 2>&1 | tee -a $LOGDIR/log.txt + +exit -- cgit v1.2.3