aboutsummaryrefslogtreecommitdiff
path: root/dists/gcw0/scummvm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dists/gcw0/scummvm.sh')
-rwxr-xr-xdists/gcw0/scummvm.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/dists/gcw0/scummvm.sh b/dists/gcw0/scummvm.sh
index 7c1d532f77..c9d2718376 100755
--- a/dists/gcw0/scummvm.sh
+++ b/dists/gcw0/scummvm.sh
@@ -1,5 +1,8 @@
#!/bin/sh
+romPath=`dirname "$1"`
+romName=`basename "$1"`
+
cd `dirname $0`
if [ ! -f $HOME/.scummvmrc ] ; then
@@ -9,7 +12,8 @@ fi
export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
if [ ! -f $HOME/.debug_scummvmrc ] ; then
- exec ./scummvm 2>&1 >/var/tmp/scummvm.log
+ exec ./scummvm -f -p"$romPath" ${romName%%.*} 2>&1 >/var/tmp/scummvm.log
else
- exec ./scummvm -d 11 2>&1 >/var/tmp/scummvm.log
+ exec ./scummvm -d 11 -f -p"$romPath" ${romName%%.*} 2>&1 >/var/tmp/scummvm.log
fi
+