aboutsummaryrefslogtreecommitdiff
path: root/dists/motomagx/pep
diff options
context:
space:
mode:
Diffstat (limited to 'dists/motomagx/pep')
-rw-r--r--dists/motomagx/pep/app/scummvm.sh18
1 files changed, 10 insertions, 8 deletions
diff --git a/dists/motomagx/pep/app/scummvm.sh b/dists/motomagx/pep/app/scummvm.sh
index 03a27f49db..83d3fcf0ed 100644
--- a/dists/motomagx/pep/app/scummvm.sh
+++ b/dists/motomagx/pep/app/scummvm.sh
@@ -1,10 +1,12 @@
#!/bin/sh
-GAMES=/mmc/mmca1/.Games
-export LD_LIBRARY_PATH=$GAMES/.lib:$LD_LIBRARY_PATH
-# uncomment next line if you wanna 270-degrees clockwise rotated screen
+mypath=${0%/*}
+LIBDIR1=/ezxlocal/download/mystuff/games/lib
+LIBDIR2=/mmc/mmca1/games/lib
+LIBDIR3=/mmc/mmca1/.Games/.lib
+#LIBDIR3=/mmc/mmca1/.system/lib
+LIBDIR4=$mypath/lib
#export SDL_QT_INVERT_ROTATION=1
-GAME_PATH=`basename $0`
-GAME_PATH=`echo $0 | sed -e 's/'$GAME_PATH'//g'`
-cd "$GAME_PATH"
-export HOME="$GAMES"
-exec ./scummvm --gfx-mode=1x > $GAME_PATH/scummvm.log
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIBDIR1:$LIBDIR2:$LIBDIR3:$LIBDIR4
+export HOME=$mypath
+cd $mypath
+exec $mypath/scummvm --gfx-mode=1x > $mypath/scummvm.log